import { SizedType } from "https://deno.land/x/byte_type@0.4.0/mod.ts";
SizedType<T>
is one of the two base classes for implementing a codec.
It is recommended to use this class if you know the size of your type ahead of time. In future released this may be used for certain optimizations
Methods
protected
rangeCheck(byteLength: number, offset: number): voidAllows you to check upfront if you will go out of bound