Codec
Codec
This is an abstract class, must be implemented by subclasses
Kind: global class
- Codec
- .decode(data) ⇒
Promise.<T> - .test(data) ⇒
Promise.<boolean>
- .decode(data) ⇒
codec.decode(data) ⇒ Promise.<T>
Kind: instance method of Codec
| Param | Type |
|---|---|
| data | Uint8Array |
codec.test(data) ⇒ Promise.<boolean>
Whether codec is able to decode this data, typically checks headers in the data
Kind: instance method of Codec
Returns: Promise.<boolean> - true if able, false otherwise
| Param | Type |
|---|---|
| data | Uint8Array |