Lightweight utility class for byte arrays.
In almost all cases Riak is character asSet agnostic when it comes to data; buckets, keys, values and metadata are all stored in Riak simply as bytes.
This utility class is used throughout the client in order to encapsulate and allow access to those bytes by the user when the data is generally representative of a {@code String} so that any character asSet may be used.
@riak.threadsafety If you are using this class directly keep in mind that any modification to the wrapped
byte[]
post creation via either a retained reference to the array after calling
unsafeCreate()
or accessing the array directly via
unsafeGetValue()
will lead to undefined behavior in regard to thread safety and visibility.
@author Brian Roach
@since 2.0