public static class FlexBuffers.Blob extends Object
It can be converted to `com.google.flatbuffers.ReadBuf` using {link data()}, copied into a byte[] using {link getBytes()} or have individual bytes accessed individually using {link get(int)}
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
data()
Return
FlexBuffers.Blob as `com.google.flatbuffers.ReadBuf` |
static FlexBuffers.Blob |
empty()
Return an empty
FlexBuffers.Blob |
byte |
get(int pos)
Return individual byte at a given position
|
byte[] |
getBytes()
Copy blob into a byte[]
|
String |
toString()
Returns a text(JSON) representation of the
FlexBuffers.Blob |
StringBuilder |
toString(StringBuilder sb)
Append a text(JSON) representation of the
FlexBuffers.Blob into a `StringBuilder` |
public ByteBuffer data()
FlexBuffers.Blob as `com.google.flatbuffers.ReadBuf`public static FlexBuffers.Blob empty()
FlexBuffers.Blobpublic byte get(int pos)
pos - position of the byte to be readpublic byte[] getBytes()
public String toString()
FlexBuffers.Blobpublic StringBuilder toString(StringBuilder sb)
FlexBuffers.Blob into a `StringBuilder`