given_Flat_Data

scalus.serialization.flat.FlatInstances.given_Flat_Data
object given_Flat_Data extends Flat[Data]

Attributes

Graph
Supertypes
trait Flat[Data]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def bitSize(a: Data): Int

Exact size of the encoding of a in bits. Callers use it to size the EncoderState buffer, so it must never under-estimate.

Exact size of the encoding of a in bits. Callers use it to size the EncoderState buffer, so it must never under-estimate.

Attributes

def decode(decode: DecoderState): Data
def encode(a: Data, enc: EncoderState): Unit