given_Flat_BigInt

scalus.serialization.flat.Flat$package.given_Flat_BigInt
object given_Flat_BigInt extends Flat[BigInt]

Attributes

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

Members list

Value members

Concrete methods

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