Skip to main contentModule codec
Source - PostcardCodec
- Postcard-based codec (compact binary serialization).
- ObjectCodec
- Trait for serializing and deserializing logical objects to/from bytes.
- decrypt_block_to_plaintext
- Read a block, extract envelope, decrypt, and return the raw plaintext bytes
(before deserialization into a typed object). Used by the object cache.
- prepare_encrypted_block
- Encrypt raw data and pack it into a block-sized buffer (without writing to store).
Returns the ready-to-write block bytes.
- prepare_encrypted_object
- Serialize, encrypt, and pad a typed object into a block-sized buffer
(without writing to store). Returns the ready-to-write block bytes.
- read_encrypted_object
- High-level helper: read a block, extract envelope, decrypt, deserialize.
- read_encrypted_raw
- Read and decrypt raw bytes (for file data chunks).
- write_encrypted_object
- High-level helper: serialize a typed object, encrypt it, pad to block size, and write.
- write_encrypted_raw
- Write raw encrypted bytes (for file data chunks that are already raw bytes).