Grounds
    Preparing search index...

    Function RI32

    • Creates a schema for signed 32-bit integers (-2147483648 to 2147483647).

      Returns TRI32

      A Relish schema for i32 values

      import { RI32, createCodec } from '@grounds/schema';

      const codec = createCodec(RI32());
      codec.encode(-1000000).match(
      (bytes) => console.log('I32 encoded:', bytes),
      (error) => console.error(error)
      );
      • RI16 for 16-bit signed
      • RI64 for 64-bit signed