numcodecs_wasm_reinterpret
Classes:
-
Reinterpret–Codec to reinterpret data between different compatible types.
Reinterpret
Reinterpret(decode_dtype, encode_dtype, _version='1.0.0')
Codec to reinterpret data between different compatible types.
Note that no conversion happens, only the meaning of the bits changes.
Reinterpreting to bytes, or to a same-sized unsigned integer type, or without the changing the dtype are supported.
| Parameters: |
|
|---|
Methods:
-
decode–Decode the data in
buf. -
encode–Encode the data in
buf. -
from_config–Instantiate the codec from a configuration
dict. -
get_config–Returns the configuration of the codec.
codec_id
class-attribute
instance-attribute
codec_id = 'reinterpret.rs'
decode
decode(buf, out=None)
Decode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
encode
encode(buf)
Encode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
from_config
classmethod
from_config(config)
get_config
get_config()
Returns the configuration of the codec.
numcodecs.registry.get_codec(config)
can be used to reconstruct this codec from the returned config.
| Returns: |
|
|---|