Class MarshallingBuffer

  • All Implemented Interfaces:
    WriteBuffer

    public class MarshallingBuffer
    extends java.lang.Object
    implements WriteBuffer
    • Constructor Detail

      • MarshallingBuffer

        public MarshallingBuffer()
    • Method Detail

      • length

        public int length()
      • offset

        public int offset()
      • writeByte

        public void writeByte​(byte b)
        Description copied from interface: WriteBuffer
        writes a single byte to the buffer.
        Specified by:
        writeByte in interface WriteBuffer
        Parameters:
        b - the byte
      • writeBytes

        public void writeBytes​(byte[] bytes)
        Description copied from interface: WriteBuffer
        writes an array of bytes to the buffer
        Specified by:
        writeBytes in interface WriteBuffer
        Parameters:
        bytes - the byte array
      • writeInt

        public void writeInt​(int i)
        Description copied from interface: WriteBuffer
        writes an int to the buffer.
        Specified by:
        writeInt in interface WriteBuffer
        Parameters:
        i - the int
      • writeLong

        public void writeLong​(long l)
        Description copied from interface: WriteBuffer
        writes a long to the buffer
        Specified by:
        writeLong in interface WriteBuffer
        Parameters:
        l - the long
      • prepareWrite

        public void prepareWrite​(int sizeNeeded)
      • transferLastWriteTo

        public void transferLastWriteTo​(MarshallingBuffer other,
                                        boolean storeLengthInLink)
      • transferContentTo

        public void transferContentTo​(ByteArrayBuffer buffer)
      • transferContentTo

        public void transferContentTo​(ByteArrayBuffer buffer,
                                      int length)
      • addChild

        public MarshallingBuffer addChild​(boolean reserveLinkSpace,
                                          boolean storeLengthInLink)
      • reserveChildLinkSpace

        public void reserveChildLinkSpace​(boolean storeLengthInLink)
      • mergeChildren

        public void mergeChildren​(MarshallingContext context,
                                  int masterAddress,
                                  int linkOffset)
      • seek

        public void seek​(int offset)
      • debugDecrementLastOffset

        public void debugDecrementLastOffset​(int count)
      • hasParent

        public boolean hasParent()
      • requestIndexEntry

        public void requestIndexEntry​(FieldMetadata fieldMetadata)
      • marshalledLength

        public int marshalledLength()