API:MemoryStream

From Kerbal Space Program Wiki
Revision as of 23:47, 12 October 2012 by N3X15 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

KSP.IO Namespace
BinaryReader · BinaryWriter · File · FileInfo · FileStream · IOException · IOTools · IOUtils · MemoryStream · PluginConfigNode · PluginConfiguration · TextReader · TextWriter

MemoryStream Class

Useful for manipulating bytes in memory.

Properties

The following are public properties available in MemoryStream.

Signature Description
long Length { get; }
bool CanWrite { get; }
int Capacity { get; set; }
bool CanRead { get; }
long Position { get; set; }
bool CanSeek { get; }

Methods

The following are methods included in MemoryStream.

Signature Description
void SetLength(long value)
void WriteByte(byte value)
int ReadByte()
long Seek(long offset, SeekOrigin loc)
byte[] ToArray()
byte[] GetBuffer()
int Read(byte[] buffer, int offset, int count)
void Write(byte[] buffer, int offset, int count)
void Flush()