Skip to main content

Type str

Information

  • Used for encoding strings up to 4,294,967,295 characters.
  • When encoding, use a string.

Example Usage

index.ts
import { Serializer, t } from "encodexx"
const serializer = new Serializer({
name: t.str,
message: t.str
})
serializer.encode({
name: "my name",
message: "this is my message"
});