Package io.datarouter.bytes
package io.datarouter.bytes
-
ClassDescriptionscanner that batches byte[]s into List<byte[]>s containing as many unbroken byte[]s as possible without exceeding maxOutputBytes total bytes.Encodes key/value pairs to a flattened byte[].Concatenated List of byte arrays with RandomAccessCodec<A,
B> A bi-directional Function where encoding then decoding should typically return the original value.Build a Codec from two Functions.Skips the inner codecs when provided values are null, directly returning null.Explicitly for storing byte arrays as java record fields.ReplacingFunction<A,B> Wrapper around a function to handle exceptional values like null.Replace nulls with nulls.Replace nulls with something provided by the SupplierRestricts the input arrays to being ordered lexicographically, enabling binary search.Terminated arrays can be embedded in a bigger array knowing that 0 is the terminal character.