Class WritableValueImpl

  • All Implemented Interfaces:
    WritableValue

    public abstract class WritableValueImpl
    extends java.lang.Object
    implements WritableValue
    • Method Detail

      • writeString

        public void writeString​(java.lang.CharSequence value)
        Specified by:
        writeString in interface WritableValue
      • setArrayLength

        public void setArrayLength​(int len)
        Description copied from interface: WritableValue
        Set length of the array. It must be called prior to nextWritableElement
        Specified by:
        setArrayLength in interface WritableValue
        Parameters:
        len - length of the array
      • nextWritableElement

        public WritableValue nextWritableElement()
        Description copied from interface: WritableValue

        Returns a transient (reused by interface implementation) WritableValue object for the next element of the array.

        WritableValue.setArrayLength(int) method must be called before this method.
        Client code must not cache the reference for further usage.
        Usage sample:

          encoder.setArrayLength(10);
          for(int i=0; i<10; i++) {
              WritableValue v = encoder.nextWritableElement (i);
              v.setInt(i);
          }
         
        Specified by:
        nextWritableElement in interface WritableValue
        Returns:
        reference to WritableValue object
      • writeBinary

        public void writeBinary​(byte[] data,
                                int offset,
                                int length)
        Specified by:
        writeBinary in interface WritableValue
      • beginWrite

        public void beginWrite​(deltix.util.memory.MemoryDataOutput out)
      • endWrite

        public void endWrite()