Skip to main content

biguint64 Type

Caution

If a value passed to .encode() is outside the biguint64 range, an error will be thrown.

Information

  • Used to describe integers from 0 to 264 - 1.
  • Requires 8 bytes for storage.
  • Use bigint for assignment.

Example Usage

index.ts
import { Serializer, t } from "encodexx"
const serializer = new Serializer({
info: {
value: t.bigint64,
}
})
serializer.encode({
info: {
value: 144_115_188_075_855_872n
}
});