Read-only interface for values that are internally represented as binary data.
This interface provides access to copies of the binary data, making instances effectively immutable. Methods of derived interfaces and classes that relax this restriction and expose access to the internal data should be clearly documented.
Get a copy of the buffer containing this value.
This value in binary form
Copy the binary data to a provided buffer.
When running the Diffusion Client in a browser context, access to the
Buffer api is made available through diffusion.buffer.
the buffer to copy data to
the position in the target buffer at which data will be copied
Get the number of bytes
The length of the data in bytes