Skip to main content

IProperty

IProperty

A property that can be read and written to a stream.

Methods

WriteLength

int WriteLength(StreamContext context)

Return the length of the property for a given context.

Write

bool Write(WriteStream stream, StreamContext context)

Write the property to the stream, if needed. Returns true if the property was written.

True if the property was written.

  • stream:The stream to write to.
  • context:The context to write in.
  • Read

    bool Read(ReadStream stream, StreamContext context)

    Read the property from the stream. Returns true if the property changed.

    True if the property changed.

  • stream:The stream to read from.
  • context:The context to read in.