BinaryWriter Class

Writes binary data to a ByteStream using big-endian byte order.

Definition

Line 10 of System.Base/BinaryWriter.cm

Constructors & Destructor

public nothrow BinaryWriter(const SharedPtr<ByteStream>& stream_)

Member Functions

public nothrow const SharedPtr<ByteStream>& ContainedStream()
public void Seek(long pos, Origin origin)
public long Tell()
public void Write(bool x)
public void Write(byte x)
public void Write(byte* buffer, int size)
public void Write(char x)
public void Write(const String<char>& x)
public void Write(const String<uchar>& x)
public void Write(const String<wchar>& x)
public void Write(const Uuid& uuid)
public void Write(double x)
public void Write(float x)
public void Write(int x)
public void Write(long x)
public void Write(sbyte x)
public void Write(short x)
public void Write(uchar x)
public void Write(uint x)
public void Write(ulong x)
public void Write(ushort x)
public void Write(wchar x)
public void WriteSLEB128Int(int x)
public void WriteSLEB128Long(long x)
public void WriteULEB128UInt(uint x)
public void WriteULEB128ULong(ulong x)

Member Variables

private SharedPtr<ByteStream> stream

Constructor& Destructor Details

BinaryWriter Constructor

public nothrow BinaryWriter(const SharedPtr<ByteStream>& stream_)

Definition
Line 12 of System.Base/BinaryWriter.cm


Member Function Details

ContainedStream Member Function

public nothrow const SharedPtr<ByteStream>& ContainedStream()

Definition
Line 212 of System.Base/BinaryWriter.cm


Seek Member Function

public void Seek(long pos, Origin origin)

Definition
Line 204 of System.Base/BinaryWriter.cm


Tell Member Function

public long Tell()

Definition
Line 208 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(bool x)

Definition
Line 15 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(byte x)

Definition
Line 35 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(byte* buffer, int size)

Definition
Line 197 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(char x)

Definition
Line 19 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(const String<char>& x)

Definition
Line 100 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(const String<uchar>& x)

Definition
Line 112 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(const String<wchar>& x)

Definition
Line 108 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(const Uuid& uuid)

Definition
Line 190 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(double x)

Definition
Line 94 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(float x)

Definition
Line 88 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(int x)

Definition
Line 50 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(long x)

Definition
Line 65 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(sbyte x)

Definition
Line 31 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(short x)

Definition
Line 39 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(uchar x)

Definition
Line 27 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(uint x)

Definition
Line 54 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(ulong x)

Definition
Line 69 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(ushort x)

Definition
Line 43 of System.Base/BinaryWriter.cm


Write Member Function

public void Write(wchar x)

Definition
Line 23 of System.Base/BinaryWriter.cm


WriteSLEB128Int Member Function

public void WriteSLEB128Int(int x)

Definition
Line 144 of System.Base/BinaryWriter.cm


WriteSLEB128Long Member Function

public void WriteSLEB128Long(long x)

Definition
Line 167 of System.Base/BinaryWriter.cm


WriteULEB128UInt Member Function

public void WriteULEB128UInt(uint x)

Definition
Line 116 of System.Base/BinaryWriter.cm


WriteULEB128ULong Member Function

public void WriteULEB128ULong(ulong x)

Definition
Line 130 of System.Base/BinaryWriter.cm