Type int32
Caution
If a value passed to .encode()
is outside the int32 range, an error will be thrown.
Information
- Used to describe integers from -2,147,483,648 to 2,147,483,647.
- Requires 4 bytes for storage.
- Use
number
for assignment.
Usage Example
import { Serializer, t } from "encodexx"
const serializer = new Serializer({ info: { number: t.int32 }})