Class IStream

Inheritance Relationships

Derived Type

  • public Microsoft::XboxStudios::Bifrost::Stream (Class Stream)

Class Documentation

class IStream

A bidirectional interface stream to write and read to a Bifrost client.

Subclassed by Microsoft::XboxStudios::Bifrost::Stream

Public Functions

IStream() = default
IStream &operator=(const IStream&) = default
IStream(IStream&&) = default
IStream &operator=(IStream&&) = default
virtual ~IStream() = default
virtual BResult Read(char *buffer, int amount) const = 0

Reads an amount of bytes from the stream and places them in the passed buffer.

Parameters
  • buffer – The buffer to place the bytes into.

  • amount – The amount of bytes to read from the stream.

Returns

BResult

virtual BResult Write(char *buffer, int size) const = 0

Writes a byte array buffer to the stream.

Parameters
  • buffer – The buffer that contains the byte array.

  • size – The size of the buffer to write.

Returns

BResult