public class RawShardCodec extends Object implements BlockCodec<RawShard>
| Modifier and Type | Method and Description |
|---|---|
DataBlock<RawShard> |
decode(ReadData readData,
long[] gridPosition)
|
ReadData |
encode(DataBlock<RawShard> shard)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodedSizepublic ReadData encode(DataBlock<RawShard> shard) throws N5Exception.N5IOException
BlockCodecDataBlock into a ReadData representation for
storage.
The encoding process serializes the block's data, applies any configured compression, and may include metadata depending on the codec implementation.
encode in interface BlockCodec<RawShard>shard - the data block to encodeN5Exception.N5IOException - if encoding or compression failsBlockCodec.decode(ReadData, long[])public DataBlock<RawShard> decode(ReadData readData, long[] gridPosition) throws N5Exception.N5IOException
BlockCodecDataBlock from its ReadData
representation.
Reverses the encoding process by decompressing (if needed) and deserializing the data.
decode in interface BlockCodec<RawShard>readData - the serialized data to decodegridPosition - position of this block on the block grid (level 0 coordinates)N5Exception.N5IOException - if decoding, decompression, or data validation failsBlockCodec.encode(DataBlock)Copyright © 2017–2026 Saalfeld Lab. All rights reserved.