Class FlexBuffers.Blob

  • Enclosing class:
    FlexBuffers

    public static class FlexBuffers.Blob
    extends Object
    Represents a array of bytes element in the buffer

    It can be converted to `ReadBuf` using data(), copied into a byte[] using getBytes() or have individual bytes accessed individually using get(int)

    • Method Detail

      • getBytes

        public byte[] getBytes()
        Copy blob into a byte[]
        Returns:
        blob as a byte[]
      • get

        public byte get​(int pos)
        Return individual byte at a given position
        Parameters:
        pos - position of the byte to be read