Interface EncodeDecode<T>
Methods
decode
- decode(buffer: Buffer, offset?: number): T
Parameters
buffer: Buffer
Optional offset: number
Returns T
encode
- encode(src: T, buffer: Buffer, offset?: number): number
Parameters
src: T
buffer: Buffer
Optional offset: number
Returns number