Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- acquire(int) - Method in class express.mvp.myra.codec.runtime.MessageEncoder
-
Acquire a fresh MemorySegment from the configured pool.
- addBoolean(boolean) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a boolean element.
- addByte(byte) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a byte (int8) element.
- addBytes(byte[]) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Adds a bytes element to the group.
- addBytes(MemorySegment, long, int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Adds a bytes element from a MemorySegment slice.
- addDouble(double) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a double (float64) element.
- addElement(T) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Convenience method to write a flyweight as an element.
- addFloat(float) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a float (float32) element.
- addInt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds an int (int32) element.
- addInts(int[]) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds multiple int values from an array.
- addLong(long) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a long (int64) element.
- addLongs(long[]) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds multiple long values from an array.
- addShort(short) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Adds a short (int16) element.
- addString(String) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Adds a string element to the group.
- addString(String, MemorySegment) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Adds a string element using a scratch buffer for UTF-8 encoding.
B
- beginElement() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Begins writing a nested message element.
- beginWithCount(MemorySegment, long, int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Begins writing a repeating group with a known element count.
- build() - Method in class express.mvp.myra.codec.runtime.EncoderConfig.Builder
-
Builds an immutable
EncoderConfigwith the configured settings. - builder() - Static method in class express.mvp.myra.codec.runtime.EncoderConfig
-
Creates a new builder for constructing an
EncoderConfig. - byteSize() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- byteSize() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Returns the total size of this repeating group in bytes, including the count field and all element data.
C
- CHECKSUM_OFFSET - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
- checksumEnabled(boolean) - Method in class express.mvp.myra.codec.runtime.EncoderConfig.Builder
-
Sets whether CRC32 checksum computation should be enabled.
- close() - Method in class express.mvp.myra.codec.runtime.PooledSegment
- config() - Method in class express.mvp.myra.codec.runtime.MessageEncoder
-
Returns the encoder configuration.
- count() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Returns the current element count.
- count() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Returns the number of elements in this repeating group.
- count() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns the number of elements in this repeating group.
- COUNT_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Size in bytes of the count field (int32).
- COUNT_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Size in bytes of the count field (int32).
- COUNT_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Size in bytes of the count field (int32).
- COUNT_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Size in bytes of the count field (int32).
- currentByteSize() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Returns the total bytes that will be written when finished (count field + all elements).
- currentCount() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Returns the number of elements written so far.
- currentOffset() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Returns the current write position (next element offset).
- currentOffset() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Returns the current write position.
D
- dataRegionStart() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns the start of the data region (after offset table).
- Decoding with Flyweight Reuse - Section in package express.mvp.myra.codec.runtime
- DEFAULT - Static variable in class express.mvp.myra.codec.runtime.EncoderConfig
-
Default configuration with checksum enabled.
E
- elementOffset(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Returns the offset of the element at the given index within the segment.
- elementSize() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Returns the element size in bytes.
- elementSize() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Returns the element size in bytes.
- EncoderConfig - Class in express.mvp.myra.codec.runtime
-
Configuration options for the Myra message encoder.
- EncoderConfig.Builder - Class in express.mvp.myra.codec.runtime
-
Builder for creating
EncoderConfiginstances. - endElement(int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Ends writing a nested message element, advancing the write position.
- equals(Object) - Method in class express.mvp.myra.codec.runtime.EncoderConfig
- expectedCount() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Returns the expected element count.
- express.mvp.myra.codec.runtime - package express.mvp.myra.codec.runtime
-
Myra Codec Runtime - Core classes for high-performance message encoding and decoding.
- express.mvp.myra.codec.runtime.struct - package express.mvp.myra.codec.runtime.struct
F
- finalizeMessage(MemorySegment, short, short) - Method in class express.mvp.myra.codec.runtime.MessageEncoder
-
Finalize the encoded message: write header length, template id, schema version, flags and checksum (if enabled).
- finish() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Finishes writing the repeating group by updating the count field.
- finish() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Finishes writing the repeating group.
- finishPartial() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Finishes writing and allows fewer elements than originally expected.
- FLAGS_OFFSET - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
- forEach(T, Consumer) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Iterates over all nested message elements, invoking the consumer for each.
- forEachString(Consumer) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Iterates over all string elements, invoking the consumer for each.
- FRAME_LENGTH_OFFSET - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
G
- Generated Builders and Flyweights - Section in package express.mvp.myra.codec.runtime
- getBooleanAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a boolean element at the specified index.
- getByteAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a byte (int8) element at the specified index.
- getBytesAt(int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns a slice of the underlying segment containing the bytes at the given index.
- getChecksum() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- getDoubleAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a double (float64) element at the specified index.
- getElementLength(int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Gets the length of an element at the given index.
- getElementOffset(int) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns the absolute offset within the segment where element data starts.
- getFlags() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- getFloatAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a float (float32) element at the specified index.
- getFrameLength() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- getIntAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets an int (int32) element at the specified index.
- getLongAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a long (int64) element at the specified index.
- getSchemaVersion() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- getShortAt(int) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Gets a short (int16) element at the specified index.
- getStringAt(int, Utf8View) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Reads a string element at the specified index into the provided Utf8View.
- getTemplateId() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- getWriter(MemorySegment) - Method in class express.mvp.myra.codec.runtime.MessageEncoder
-
Provides the writer bound to the given target segment.
H
- hashCode() - Method in class express.mvp.myra.codec.runtime.EncoderConfig
- HEADER_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
- headerByteSize() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns the total size of this repeating group header in bytes (count + offset table).
- HIGH_PERFORMANCE - Static variable in class express.mvp.myra.codec.runtime.EncoderConfig
-
High-performance configuration with checksum disabled.
- High-Throughput Encoding (Multiple Threads) - Section in package express.mvp.myra.codec.runtime
I
- isChecksumEnabled() - Method in class express.mvp.myra.codec.runtime.EncoderConfig
-
Returns whether CRC32 checksum computation is enabled.
- isWrapped() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- isWrapped() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Checks if this iterator is currently wrapped around a segment.
- isWrapped() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Checks if this iterator is currently wrapped around a segment.
M
- MessageEncoder - Class in express.mvp.myra.codec.runtime
-
Small helper for performing forward-only, single-pass message encoding with the standard Myra message header.
- MessageEncoder(MemorySegmentPool) - Constructor for class express.mvp.myra.codec.runtime.MessageEncoder
-
Creates a MessageEncoder with default configuration (checksum enabled).
- MessageEncoder(MemorySegmentPool, EncoderConfig) - Constructor for class express.mvp.myra.codec.runtime.MessageEncoder
-
Creates a MessageEncoder with the specified configuration.
- MessageHeader - Class in express.mvp.myra.codec.runtime.struct
-
A flyweight for the standard 16-byte MyraCodec message header.
- MessageHeader() - Constructor for class express.mvp.myra.codec.runtime.struct.MessageHeader
O
- OFFSET_ENTRY_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Size in bytes of each offset entry (int32).
- OFFSET_ENTRY_SIZE - Static variable in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Size in bytes of each offset entry (int32).
P
- pool() - Method in class express.mvp.myra.codec.runtime.MessageEncoder
-
Access the underlying pool used for allocations.
- PooledSegment - Class in express.mvp.myra.codec.runtime
-
An AutoCloseable wrapper for a MemorySegment that automatically releases the segment back to its pool when used in a try-with-resources block.
- PooledSegment(MemorySegment, MemorySegmentPool) - Constructor for class express.mvp.myra.codec.runtime.PooledSegment
R
- Recommended Patterns - Section in package express.mvp.myra.codec.runtime
- RepeatingGroupBuilder - Class in express.mvp.myra.codec.runtime.struct
-
A builder for writing repeating groups of fixed-size primitive elements.
- RepeatingGroupBuilder(int) - Constructor for class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Creates a new builder for fixed-size elements.
- RepeatingGroupIterator - Class in express.mvp.myra.codec.runtime.struct
-
A zero-allocation iterator for repeating groups of fixed-size primitive elements.
- RepeatingGroupIterator(int) - Constructor for class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Creates a new iterator for fixed-size elements.
- reset() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Resets this builder, releasing the reference to the segment.
- reset() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Resets this iterator, releasing the reference to the segment.
- reset() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Resets this builder, releasing the reference to the segment.
- reset() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Resets this iterator, releasing the reference to the segment.
S
- SCHEMA_VERSION_OFFSET - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
- segment() - Method in class express.mvp.myra.codec.runtime.PooledSegment
-
Gets the underlying MemorySegment.
- segment() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- segment() - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Returns the underlying memory segment.
- segment() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Returns the underlying memory segment.
- segment() - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Returns the underlying memory segment.
- setChecksum(int) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- setFlags(byte) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- setFrameLength(int) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- setSchemaVersion(short) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- setTemplateId(short) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
T
- TEMPLATE_ID_OFFSET - Static variable in class express.mvp.myra.codec.runtime.struct.MessageHeader
- Thread Safety - Section in class express.mvp.myra.codec.runtime.EncoderConfig
- Thread Safety - Section in class express.mvp.myra.codec.runtime.MessageEncoder
- Thread Safety - Section in class express.mvp.myra.codec.runtime.PooledSegment
- Thread Safety - Section in class express.mvp.myra.codec.runtime.struct.MessageHeader
- Thread Safety Summary - Section in package express.mvp.myra.codec.runtime
- toString() - Method in class express.mvp.myra.codec.runtime.EncoderConfig
V
- validate() - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- VariableSizeRepeatingGroupBuilder - Class in express.mvp.myra.codec.runtime.struct
-
A builder for writing repeating groups of variable-size elements.
- VariableSizeRepeatingGroupBuilder() - Constructor for class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupBuilder
-
Creates a new builder for variable-size elements.
- VariableSizeRepeatingGroupIterator - Class in express.mvp.myra.codec.runtime.struct
-
A zero-allocation iterator for repeating groups of variable-size elements.
- VariableSizeRepeatingGroupIterator() - Constructor for class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Creates a new iterator for variable-size elements.
W
- Wire Format - Section in class express.mvp.myra.codec.runtime.struct.MessageHeader
- wrap(MemorySegment, long) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
- wrap(MemorySegment, long) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupBuilder
-
Wraps this builder around a memory segment at the specified offset.
- wrap(MemorySegment, long) - Method in class express.mvp.myra.codec.runtime.struct.RepeatingGroupIterator
-
Wraps this iterator around a memory segment at the specified offset.
- wrap(MemorySegment, long) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Wraps this iterator around a memory segment at the specified offset.
- wrapElementAt(int, T) - Method in class express.mvp.myra.codec.runtime.struct.VariableSizeRepeatingGroupIterator
-
Wraps a flyweight accessor at the element position for the given index.
- writeTo(BinaryWriter) - Method in class express.mvp.myra.codec.runtime.struct.MessageHeader
-
Writes the current state of this flyweight to the given writer.
All Classes and Interfaces|All Packages|Constant Field Values