SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Io
Class FileDeserializer

NonCopyableType
   |
   +-IDeserializer
        |
        +-FileDeserializer

Implemented in:
Platform.Io.FileDeserializer.h

class FileDeserializer:
public IDeserializer

Deserializes data from a file.

Fields inherited from class IDeserializercollapse
byteCount

Constructor Summarycollapse
FileDeserializer(const Path& path, FileMode mode = FileMode_Open, FileAccess access = FileAccess_Read)
          Constructor.
~FileDeserializer()
          Destructor.

Method Summarycollapse
Void close()
          Closes the deserializer stream.
protected Void deserialize(Byte& value)
          Deserializes a single byte of data.
Void skip(Int bytes)
          Skips over the specified number of bytes in the deserialized stream.

Methods inherited from class IDeserializercollapse
close, count, deserialize, deserialize, deserializeAsByte, deserializeAsInt, deserializeBytes, skip

 

Constructor Detail

FileDeserializer[inline]

FileDeserializer(const Path& path, FileMode mode = FileMode_Open, FileAccess access = FileAccess_Read)

Constructor.

Parameters:
path - path to the file containing previously serialized data
mode - file open mode
access - file access mode

~FileDeserializer[inline]

~FileDeserializer()

Destructor.

 

Method Detail

close[virtual, inline]

Void close()

Closes the deserializer stream.

Overrides:
IDeserializer::close

deserialize[virtual, inline]

protected Void deserialize(Byte& value)

Deserializes a single byte of data.

Parameters:
value - a byte
Overrides:
IDeserializer::deserialize

skip[virtual, inline]

Void skip(Int bytes)

Skips over the specified number of bytes in the deserialized stream.

Parameters:
bytes - number of bytes to skip over
Overrides:
IDeserializer::skip


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND