Javolution 6.0.0 java
|
Public Member Functions | |
UTF8String (int length) | |
void | set (String string) |
String | get () |
String | toString () |
final Struct | struct () |
final int | offset () |
final int | bitIndex () |
final int | bitLength () |
Package Functions | |
final int | get (int wordSize, int word) |
final long | get (int wordSize, long word) |
final int | set (int value, int wordSize, int word) |
final long | set (long value, int wordSize, long word) |
Private Attributes | |
final UTF8ByteBufferWriter | _writer = new UTF8ByteBufferWriter() |
final UTF8ByteBufferReader | _reader = new UTF8ByteBufferReader() |
final int | _length |
final int | _offset |
final int | _bitIndex |
final int | _bitLength |
This class represents a UTF-8 character string, null terminated (for C/C++ compatibility)
Definition at line 1062 of file Struct.java.
javolution.io.Struct.UTF8String.UTF8String | ( | int | length | ) |
|
inherited |
Holds the bit offset of this member (if any). The actual position of the bits data depends upon the endianess and the word size.
Definition at line 998 of file Struct.java.
References javolution.io.Struct.Member._bitIndex.
Referenced by javolution.io.Struct.Member.get(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.Member.set(), and javolution.io.Struct.BitField.set().
|
inherited |
Returns the number of bits in this member. Can be zero if this member is used to force the next member to the next word boundary.
Definition at line 1008 of file Struct.java.
References javolution.io.Struct.Member._bitLength.
Referenced by javolution.io.Struct.Member.get(), javolution.io.Struct.Bool.get(), javolution.io.Struct.Signed8.get(), javolution.io.Struct.Unsigned8.get(), javolution.io.Struct.Signed16.get(), javolution.io.Struct.Unsigned16.get(), javolution.io.Struct.Signed32.get(), javolution.io.Struct.Unsigned32.get(), javolution.io.Struct.Signed64.get(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.Member.Member(), javolution.io.Struct.Member.set(), javolution.io.Struct.Bool.set(), javolution.io.Struct.Signed8.set(), javolution.io.Struct.Unsigned8.set(), javolution.io.Struct.Signed16.set(), javolution.io.Struct.Unsigned16.set(), javolution.io.Struct.Signed32.set(), javolution.io.Struct.Unsigned32.set(), javolution.io.Struct.Signed64.set(), and javolution.io.Struct.BitField.set().
String javolution.io.Struct.UTF8String.get | ( | ) |
Definition at line 1096 of file Struct.java.
References javolution.io.Struct.UTF8String._length, javolution.io.Struct.UTF8String._reader, javolution.text.TextBuilder.append(), javolution.io.Struct.getByteBuffer(), javolution.io.Struct.getByteBufferPosition(), javolution.io.Struct.Member.offset(), javolution.io.UTF8ByteBufferReader.read(), javolution.io.UTF8ByteBufferReader.reset(), javolution.io.UTF8ByteBufferReader.setInput(), and javolution.text.TextBuilder.toString().
|
packageinherited |
Definition at line 1013 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
|
packageinherited |
Definition at line 1034 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
|
inherited |
Returns the byte offset of this member in its struct. Equivalent to C/C++ offsetof(struct(), this)
Definition at line 989 of file Struct.java.
References javolution.io.Struct.Member._offset.
Referenced by javolution.io.Struct.UTF8String.get(), javolution.io.Struct.Bool.get(), javolution.io.Struct.Signed8.get(), javolution.io.Struct.Unsigned8.get(), javolution.io.Struct.Signed16.get(), javolution.io.Struct.Unsigned16.get(), javolution.io.Struct.Signed32.get(), javolution.io.Struct.Unsigned32.get(), javolution.io.Struct.Signed64.get(), javolution.io.Struct.Float32.get(), javolution.io.Struct.Float64.get(), javolution.io.Struct.Enum8< T extends Enum< T >.get(), javolution.io.Struct.Enum16< T extends Enum< T >.get(), javolution.io.Struct.Enum32< T extends Enum< T >.get(), javolution.io.Struct.Enum64< T extends Enum< T >.get(), javolution.io.Struct.Reference32< S extends Struct >.isUpToDate(), javolution.io.Struct.Reference64< S extends Struct >.isUpToDate(), javolution.io.Struct.BitField.longValue(), javolution.io.Struct.UTF8String.set(), javolution.io.Struct.Bool.set(), javolution.io.Struct.Signed8.set(), javolution.io.Struct.Unsigned8.set(), javolution.io.Struct.Signed16.set(), javolution.io.Struct.Unsigned16.set(), javolution.io.Struct.Signed32.set(), javolution.io.Struct.Unsigned32.set(), javolution.io.Struct.Signed64.set(), javolution.io.Struct.BitField.set(), javolution.io.Struct.Float32.set(), javolution.io.Struct.Float64.set(), javolution.io.Struct.Reference32< S extends Struct >.set(), javolution.io.Struct.Reference64< S extends Struct >.set(), javolution.io.Struct.Enum8< T extends Enum< T >.set(), javolution.io.Struct.Enum16< T extends Enum< T >.set(), javolution.io.Struct.Enum32< T extends Enum< T >.set(), javolution.io.Struct.Enum64< T extends Enum< T >.set(), javolution.io.Struct.Reference32< S extends Struct >.value(), and javolution.io.Struct.Reference64< S extends Struct >.value().
|
packageinherited |
Definition at line 1023 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
|
packageinherited |
Definition at line 1044 of file Struct.java.
References javolution.io.Struct.Member.bitIndex(), javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.byteOrder().
void javolution.io.Struct.UTF8String.set | ( | String | string | ) |
Definition at line 1073 of file Struct.java.
References javolution.io.Struct.UTF8String._length, javolution.io.Struct.UTF8String._writer, javolution.io.Struct.getByteBuffer(), javolution.io.Struct.getByteBufferPosition(), javolution.io.Struct.Member.offset(), javolution.io.UTF8ByteBufferWriter.reset(), javolution.io.UTF8ByteBufferWriter.setOutput(), and javolution.io.UTF8ByteBufferWriter.write().
|
inherited |
Returns the outer struct container.
Definition at line 979 of file Struct.java.
String javolution.io.Struct.UTF8String.toString | ( | ) |
Definition at line 1121 of file Struct.java.
|
privateinherited |
Holds the relative bit offset of this member to its struct offset.
Definition at line 903 of file Struct.java.
Referenced by javolution.io.Struct.Member.bitIndex(), and javolution.io.Struct.Member.Member().
|
privateinherited |
Holds the bit length of this member.
Definition at line 907 of file Struct.java.
Referenced by javolution.io.Struct.Member.bitLength(), and javolution.io.Struct.Member.Member().
|
private |
Definition at line 1066 of file Struct.java.
Referenced by javolution.io.Struct.UTF8String.get(), javolution.io.Struct.UTF8String.set(), and javolution.io.Struct.UTF8String.UTF8String().
|
privateinherited |
Holds the relative offset (in bytes) of this member within its struct.
Definition at line 899 of file Struct.java.
Referenced by javolution.io.Struct.Member.Member(), and javolution.io.Struct.Member.offset().
|
private |
Definition at line 1065 of file Struct.java.
Referenced by javolution.io.Struct.UTF8String.get().
|
private |
Definition at line 1064 of file Struct.java.
Referenced by javolution.io.Struct.UTF8String.set().