given_Flat_Unit

scalus.serialization.flat.Flat$package.given_Flat_Unit
object given_Flat_Unit extends Flat[Unit]

Attributes

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

Members list

Value members

Concrete methods

def bitSize(a: Unit): 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): Unit
def encode(a: Unit, encode: EncoderState): Unit