encode method

encode

Encode the entity and save the result into the stream.

def encode(self, entity, stream):
    ...
ParameterTypeDescription
entityEntityThe entity to encode
streamio.RawIOBaseThe stream to write to, this method will not close this stream

encode

Encode the entity and save the result into an external file.

def encode(self, entity, file_name):
    ...
ParameterTypeDescription
entityEntityThe entity to encode
file_namestrThe file to write to

encode

Encode the entity and save the result into the stream.

def encode(self, entity, stream, opt):
    ...
ParameterTypeDescription
entityEntityThe entity to encode
streamio.RawIOBaseThe stream to write to, this method will not close this stream
optPlySaveOptionsSave options

encode

Encode the entity and save the result into an external file.

def encode(self, entity, file_name, opt):
    ...
ParameterTypeDescription
entityEntityThe entity to encode
file_namestrThe file to write to
optPlySaveOptionsSave options

See Also