IValueEncoder<TValue, TStorage>

Namespace: SnowBank.Data.Binary · interface

Class that know how to encode and decode values of a fixed type into a lower format

Methods

DecodeValue

TValue DecodeValue(TStorage encoded)

Decodes a single value from a compact binary representation

  • encoded — Packed value

EncodeValue

TStorage EncodeValue(TValue value)

Encodes a single value into a compact binary representation

  • value — Value to encode