Class ByteArray
java.lang.Object
io.sbk.data.impl.ByteArray
- All Implemented Interfaces:
DataType<byte[]>
-
Field Summary
Fields inherited from interface DataType
TIME_HEADER_BYTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]allocate(int size) Create byte array data.byte[]create(int size) Create byte array data and fill the random data.longgetTime(byte[] data) Get the time of data.intGet minimum Write and Read Data Size.intlength(@NotNull byte[] data) Get the size of the given data in terms of number of bytes for writers.byte[]setTime(byte[] data, long time) Set the time for data.
-
Constructor Details
-
ByteArray
public ByteArray()
-
-
Method Details
-
allocate
-
create
-
length
-
setTime
-
getTime
public long getTime(byte[] data) Get the time of data.- Specified by:
getTimein interfaceDataType<byte[]>- Parameters:
data- data- Returns:
- long return the time set by last
setTime(byte[], long)} )}}.
-
getWriteReadMinSize
public int getWriteReadMinSize()Get minimum Write and Read Data Size.- Specified by:
getWriteReadMinSizein interfaceDataType<byte[]>- Returns:
- int minimum data size Write and Read.
-