public class MarshallingBuffer extends java.lang.Object implements WriteBuffer
| Constructor and Description |
|---|
MarshallingBuffer() |
| Modifier and Type | Method and Description |
|---|---|
MarshallingBuffer |
addChild() |
MarshallingBuffer |
addChild(boolean reserveLinkSpace,
boolean storeLengthInLink) |
MarshallingBuffer |
checkBlockAlignment(MarshallingContext context,
MarshallingBuffer precedingBuffer,
IntByRef precedingLength) |
void |
debugDecrementLastOffset(int count) |
boolean |
hasParent() |
int |
length() |
int |
marshalledLength() |
void |
mergeChildren(MarshallingContext context,
int masterAddress,
int linkOffset) |
int |
offset() |
void |
prepareWrite(int sizeNeeded) |
void |
requestIndexEntry(FieldMetadata fieldMetadata) |
ReservedBuffer |
reserve(int length) |
void |
reserveChildLinkSpace(boolean storeLengthInLink) |
void |
seek(int offset) |
ByteArrayBuffer |
testDelegate() |
void |
transferContentTo(ByteArrayBuffer buffer) |
void |
transferContentTo(ByteArrayBuffer buffer,
int length) |
void |
transferLastWriteTo(MarshallingBuffer other,
boolean storeLengthInLink) |
void |
writeByte(byte b)
writes a single byte to the buffer.
|
void |
writeBytes(byte[] bytes)
writes an array of bytes to the buffer
|
void |
writeInt(int i)
writes an int to the buffer.
|
void |
writeLong(long l)
writes a long to the buffer
|
public int length()
public int offset()
public void writeByte(byte b)
WriteBufferwriteByte in interface WriteBufferb - the bytepublic void writeBytes(byte[] bytes)
WriteBufferwriteBytes in interface WriteBufferbytes - the byte arraypublic void writeInt(int i)
WriteBufferwriteInt in interface WriteBufferi - the intpublic void writeLong(long l)
WriteBufferwriteLong in interface WriteBufferl - the longpublic void prepareWrite(int sizeNeeded)
public void transferLastWriteTo(MarshallingBuffer other, boolean storeLengthInLink)
public void transferContentTo(ByteArrayBuffer buffer)
public void transferContentTo(ByteArrayBuffer buffer, int length)
public ByteArrayBuffer testDelegate()
public MarshallingBuffer addChild()
public MarshallingBuffer addChild(boolean reserveLinkSpace, boolean storeLengthInLink)
public void reserveChildLinkSpace(boolean storeLengthInLink)
public void mergeChildren(MarshallingContext context, int masterAddress, int linkOffset)
public void seek(int offset)
public ReservedBuffer reserve(int length)
public void debugDecrementLastOffset(int count)
public boolean hasParent()
public void requestIndexEntry(FieldMetadata fieldMetadata)
public MarshallingBuffer checkBlockAlignment(MarshallingContext context, MarshallingBuffer precedingBuffer, IntByRef precedingLength)
public int marshalledLength()