C# Class wyUpdate.Common.ReadFiles

Show file Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Methods

Method Description
IsHeaderValid ( Stream fs, string HeaderShouldBe ) : bool
ReachedEndByte ( Stream fs, byte endByte, byte readValue ) : bool
ReadBool ( Stream fs ) : bool
ReadByteArray ( Stream fs ) : byte[]
ReadDateTime ( Stream fs ) : System.DateTime
ReadDeprecatedString ( Stream fs ) : string
ReadInt ( Stream fs ) : int
ReadLong ( Stream fs ) : long
ReadShort ( Stream fs ) : short
ReadString ( Stream fs ) : string
ReadWholeArray ( Stream stream, byte data ) : void
SkipField ( Stream fs, byte flag ) : void

Method Details

IsHeaderValid() public static method

public static IsHeaderValid ( Stream fs, string HeaderShouldBe ) : bool
fs Stream
HeaderShouldBe string
return bool

ReachedEndByte() public static method

public static ReachedEndByte ( Stream fs, byte endByte, byte readValue ) : bool
fs Stream
endByte byte
readValue byte
return bool

ReadBool() public static method

public static ReadBool ( Stream fs ) : bool
fs Stream
return bool

ReadByteArray() public static method

public static ReadByteArray ( Stream fs ) : byte[]
fs Stream
return byte[]

ReadDateTime() public static method

public static ReadDateTime ( Stream fs ) : System.DateTime
fs Stream
return System.DateTime

ReadDeprecatedString() public static method

public static ReadDeprecatedString ( Stream fs ) : string
fs Stream
return string

ReadInt() public static method

public static ReadInt ( Stream fs ) : int
fs Stream
return int

ReadLong() public static method

public static ReadLong ( Stream fs ) : long
fs Stream
return long

ReadShort() public static method

public static ReadShort ( Stream fs ) : short
fs Stream
return short

ReadString() public static method

public static ReadString ( Stream fs ) : string
fs Stream
return string

ReadWholeArray() public static method

public static ReadWholeArray ( Stream stream, byte data ) : void
stream Stream
data byte
return void

SkipField() public static method

public static SkipField ( Stream fs, byte flag ) : void
fs Stream
flag byte
return void