Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
VRage.ByteStream Class Reference
Inheritance diagram for VRage.ByteStream:

Public Member Functions

 ByteStream (int capacity, bool expandable=true)
 Create non-resetable Stream, optionally expandable More...
 
 ByteStream ()
 Creates resetable Stream More...
 
 ByteStream (byte[] newBaseArray, int length)
 Creates and initializes resetable Stream More...
 
override void Flush ()
 
void Reset (byte[] newBaseArray, int length)
 
override int Read (byte[] buffer, int offset, int count)
 Original C# implementation More...
 
override long Seek (long offset, SeekOrigin origin)
 
void EnsureCapacity (long minimumSize)
 
void CheckCapacity (long minimumSize)
 
override void SetLength (long value)
 
new unsafe byte ReadByte ()
 
new unsafe void WriteByte (byte value)
 
unsafe ushort ReadUShort ()
 
unsafe void WriteUShort (ushort value)
 
override void Write (byte[] buffer, int offset, int count)
 Original C# implementation More...
 

Public Attributes

readonly bool Expandable
 
readonly bool Resetable
 

Properties

byte[] Data [get]
 
override bool CanRead [get]
 
override bool CanSeek [get]
 
override bool CanWrite [get]
 
override long Length [get]
 
override long Position [get, set]
 

Detailed Description

Definition at line 10 of file ByteStream.cs.

Constructor & Destructor Documentation

VRage.ByteStream.ByteStream ( int  capacity,
bool  expandable = true 
)
inline

Create non-resetable Stream, optionally expandable

Definition at line 22 of file ByteStream.cs.

VRage.ByteStream.ByteStream ( )
inline

Creates resetable Stream

Definition at line 33 of file ByteStream.cs.

VRage.ByteStream.ByteStream ( byte[]  newBaseArray,
int  length 
)
inline

Creates and initializes resetable Stream

Definition at line 42 of file ByteStream.cs.

Member Function Documentation

void VRage.ByteStream.CheckCapacity ( long  minimumSize)
inline

Definition at line 180 of file ByteStream.cs.

void VRage.ByteStream.EnsureCapacity ( long  minimumSize)
inline

Definition at line 160 of file ByteStream.cs.

override void VRage.ByteStream.Flush ( )
inline

Definition at line 68 of file ByteStream.cs.

override int VRage.ByteStream.Read ( byte[]  buffer,
int  offset,
int  count 
)
inline

Original C# implementation

Definition at line 107 of file ByteStream.cs.

new unsafe byte VRage.ByteStream.ReadByte ( )
inline

Definition at line 207 of file ByteStream.cs.

unsafe ushort VRage.ByteStream.ReadUShort ( )
inline

Definition at line 222 of file ByteStream.cs.

void VRage.ByteStream.Reset ( byte[]  newBaseArray,
int  length 
)
inline

Definition at line 89 of file ByteStream.cs.

override long VRage.ByteStream.Seek ( long  offset,
SeekOrigin  origin 
)
inline

Definition at line 135 of file ByteStream.cs.

override void VRage.ByteStream.SetLength ( long  value)
inline

Definition at line 195 of file ByteStream.cs.

override void VRage.ByteStream.Write ( byte[]  buffer,
int  offset,
int  count 
)
inline

Original C# implementation

Definition at line 245 of file ByteStream.cs.

new unsafe void VRage.ByteStream.WriteByte ( byte  value)
inline

Definition at line 215 of file ByteStream.cs.

unsafe void VRage.ByteStream.WriteUShort ( ushort  value)
inline

Definition at line 232 of file ByteStream.cs.

Member Data Documentation

readonly bool VRage.ByteStream.Expandable

Definition at line 16 of file ByteStream.cs.

readonly bool VRage.ByteStream.Resetable

Definition at line 17 of file ByteStream.cs.

Property Documentation

override bool VRage.ByteStream.CanRead
get

Definition at line 54 of file ByteStream.cs.

override bool VRage.ByteStream.CanSeek
get

Definition at line 59 of file ByteStream.cs.

override bool VRage.ByteStream.CanWrite
get

Definition at line 64 of file ByteStream.cs.

byte [] VRage.ByteStream.Data
get

Definition at line 49 of file ByteStream.cs.

override long VRage.ByteStream.Length
get

Definition at line 73 of file ByteStream.cs.

override long VRage.ByteStream.Position
getset

Definition at line 78 of file ByteStream.cs.


The documentation for this class was generated from the following file: