C# Class Gibbed.Helpers.StreamHelpers

显示文件 Open project: yole/Gibbed.RED

Public Properties

Property Type Description
DefaultEncoding Encoding

Public Methods

Method Description
ReadString ( this stream, int size, Encoding encoding ) : string
ReadString ( this stream, int size, bool trailingNull, Encoding encoding ) : string
ReadString ( this stream, uint size ) : string
ReadString ( this stream, uint size, Encoding encoding ) : string
ReadString ( this stream, uint size, bool trailingNull ) : string
ReadString ( this stream, uint size, bool trailingNull, Encoding encoding ) : string
ReadStringZ ( this stream ) : string
ReadStringZ ( this stream, Encoding encoding ) : string
ReadToMemoryStream ( this stream, long size ) : MemoryStream
ReadToMemoryStream ( this stream, long size, int buffer ) : MemoryStream
WriteFromStream ( this stream, Stream input, long size ) : void
WriteFromStream ( this stream, Stream input, long size, int buffer ) : void
WriteString ( this stream, string value ) : void
WriteString ( this stream, string value, Encoding encoding ) : void
WriteStringZ ( this stream, string value ) : void
WriteStringZ ( this stream, string value, Encoding encoding ) : void

Private Methods

Method Description
ShouldSwap ( bool littleEndian ) : bool

Method Details

ReadString() public static method

public static ReadString ( this stream, int size, Encoding encoding ) : string
stream this
size int
encoding Encoding
return string

ReadString() public static method

public static ReadString ( this stream, int size, bool trailingNull, Encoding encoding ) : string
stream this
size int
trailingNull bool
encoding Encoding
return string

ReadString() public static method

public static ReadString ( this stream, uint size ) : string
stream this
size uint
return string

ReadString() public static method

public static ReadString ( this stream, uint size, Encoding encoding ) : string
stream this
size uint
encoding Encoding
return string

ReadString() public static method

public static ReadString ( this stream, uint size, bool trailingNull ) : string
stream this
size uint
trailingNull bool
return string

ReadString() public static method

public static ReadString ( this stream, uint size, bool trailingNull, Encoding encoding ) : string
stream this
size uint
trailingNull bool
encoding Encoding
return string

ReadStringZ() public static method

public static ReadStringZ ( this stream ) : string
stream this
return string

ReadStringZ() public static method

public static ReadStringZ ( this stream, Encoding encoding ) : string
stream this
encoding Encoding
return string

ReadToMemoryStream() public static method

public static ReadToMemoryStream ( this stream, long size ) : MemoryStream
stream this
size long
return System.IO.MemoryStream

ReadToMemoryStream() public static method

public static ReadToMemoryStream ( this stream, long size, int buffer ) : MemoryStream
stream this
size long
buffer int
return System.IO.MemoryStream

WriteFromStream() public static method

public static WriteFromStream ( this stream, Stream input, long size ) : void
stream this
input Stream
size long
return void

WriteFromStream() public static method

public static WriteFromStream ( this stream, Stream input, long size, int buffer ) : void
stream this
input Stream
size long
buffer int
return void

WriteString() public static method

public static WriteString ( this stream, string value ) : void
stream this
value string
return void

WriteString() public static method

public static WriteString ( this stream, string value, Encoding encoding ) : void
stream this
value string
encoding Encoding
return void

WriteStringZ() public static method

public static WriteStringZ ( this stream, string value ) : void
stream this
value string
return void

WriteStringZ() public static method

public static WriteStringZ ( this stream, string value, Encoding encoding ) : void
stream this
value string
encoding Encoding
return void

Property Details

DefaultEncoding public_oe static_oe property

public static Encoding DefaultEncoding
return Encoding