C# Class OpenRA.StreamExts

ファイルを表示 Open project: pchote/OpenRA

Public Methods

Method Description
Peek ( this s ) : int
ReadASCII ( this s, int length ) : string
ReadASCIIZ ( this s ) : string
ReadAllBytes ( this s ) : byte[]
ReadAllLines ( this s ) : IEnumerable
ReadAllText ( this s ) : string
ReadBytes ( this s, int count ) : byte[]
ReadBytes ( this s, byte buffer, int offset, int count ) : void
ReadDouble ( this s ) : double
ReadFloat ( this s ) : float
ReadInt16 ( this s ) : short
ReadInt32 ( this s ) : int
ReadString ( this s, Encoding encoding, int maxLength ) : string
ReadUInt16 ( this s ) : ushort
ReadUInt32 ( this s ) : uint
ReadUInt8 ( this s ) : byte
Write ( this s, byte data ) : void
Write ( this s, int value ) : void
WriteString ( this s, Encoding encoding, string text ) : int

Method Details

Peek() public static method

public static Peek ( this s ) : int
s this
return int

ReadASCII() public static method

public static ReadASCII ( this s, int length ) : string
s this
length int
return string

ReadASCIIZ() public static method

public static ReadASCIIZ ( this s ) : string
s this
return string

ReadAllBytes() public static method

public static ReadAllBytes ( this s ) : byte[]
s this
return byte[]

ReadAllLines() public static method

public static ReadAllLines ( this s ) : IEnumerable
s this
return IEnumerable

ReadAllText() public static method

public static ReadAllText ( this s ) : string
s this
return string

ReadBytes() public static method

public static ReadBytes ( this s, int count ) : byte[]
s this
count int
return byte[]

ReadBytes() public static method

public static ReadBytes ( this s, byte buffer, int offset, int count ) : void
s this
buffer byte
offset int
count int
return void

ReadDouble() public static method

public static ReadDouble ( this s ) : double
s this
return double

ReadFloat() public static method

public static ReadFloat ( this s ) : float
s this
return float

ReadInt16() public static method

public static ReadInt16 ( this s ) : short
s this
return short

ReadInt32() public static method

public static ReadInt32 ( this s ) : int
s this
return int

ReadString() public static method

public static ReadString ( this s, Encoding encoding, int maxLength ) : string
s this
encoding System.Text.Encoding
maxLength int
return string

ReadUInt16() public static method

public static ReadUInt16 ( this s ) : ushort
s this
return ushort

ReadUInt32() public static method

public static ReadUInt32 ( this s ) : uint
s this
return uint

ReadUInt8() public static method

public static ReadUInt8 ( this s ) : byte
s this
return byte

Write() public static method

public static Write ( this s, byte data ) : void
s this
data byte
return void

Write() public static method

public static Write ( this s, int value ) : void
s this
value int
return void

WriteString() public static method

public static WriteString ( this s, Encoding encoding, string text ) : int
s this
encoding System.Text.Encoding
text string
return int