NullCodec¶

-
class
NullCodec[source]¶ Bases:
taurus.core.util.codecs.Codec-
decode(data, *args, **kwargs)[source]¶ decodes with Null encoder. Just returns the given data
Parameters: data ( sequence[str, obj]) – a sequence of two elements where the first item is the encoding format of the second item objectReturn type: sequence[str, obj]Returns: a sequence of two elements where the first item is the encoding format of the second item object
-
encode(data, *args, **kwargs)[source]¶ encodes with Null encoder. Just returns the given data
Parameters: data ( sequence[str, obj]) – a sequence of two elements where the first item is the encoding format of the second item objectReturn type: sequence[str, obj]Returns: a sequence of two elements where the first item is the encoding format of the second item object
-