Interface BinaryFieldEx

    • Method Detail

      • typeId

        int typeId()
        Returns:
        Type ID this field relates to.
      • writeField

        boolean writeField​(BinaryObject obj,
                           ByteBuffer buf)
        Writes field value to the given byte buffer.
        Parameters:
        obj - Object from which the field should be extracted.
        buf - Buffer to write the field value to.
        Returns:
        True if the value was successfully written, false if there is not enough space for the field in the buffer.
      • readField

        <F> F readField​(ByteBuffer buf)
        Reads field value from the given byte buffer.
        Parameters:
        buf - Buffer to read value from.
        Returns:
        Field value.