public static class FlexBuffers.Blob extends Object
It can be converted to `ReadBuf` using data(),
copied into a byte[] using getBytes() or
have individual bytes accessed individually using get(int)
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
data()
Return
FlexBuffers.Blob as `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 static FlexBuffers.Blob empty()
FlexBuffers.Blobpublic ByteBuffer data()
FlexBuffers.Blob as `ReadBuf`public byte[] getBytes()
public byte get(int pos)
pos - position of the byte to be readpublic String toString()
FlexBuffers.Blobpublic StringBuilder toString(StringBuilder sb)
FlexBuffers.Blob into a `StringBuilder`Copyright © 2020. All rights reserved.