def encode_to_stream(self, value, stream, nested):
    stream.write(self.encode(value), nested)
Reads object from potentially-nested encoding in stream.
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/coders/coder_impl.py/SimpleCoderImpl.encode_to_stream