Méthode | Description | |
---|---|---|
BinaryStreamStack ( ) : System.Collections.Generic |
Initializes a new instance of the BinaryStreamStack class with the default encoding of UTF8.
|
|
BinaryStreamStack ( |
Initializes a new instance of the BinaryStreamStack class.
|
|
HasData ( ) : bool |
Returns true if there is any data left to read.
|
|
Peek ( ) : |
Returns the reader on the top of the stack but does not remove it.
|
|
Pop ( ) : |
Returns the reader on the top of the stack and removes it
|
|
Push ( byte data ) : void |
Pushes data to the front of the stack. The most recently pushed data will be read first.
|
|
Read ( ) : int |
Reads a single byte as an integer from the stack. Returns -1 if no data is left to read.
|
|
Read ( byte buffer, int index, int count ) : int |
Reads the specified number of bytes from the stack, starting from a specified point in the byte array.
|
|
Read ( char buffer, int index, int count ) : int |
Reads the specified number of characters from the stack, starting from a specified point in the byte array.
|
|
ReadByteLine ( ) : byte[] |
Reads the specified number of characters from the stack, starting from a specified point in the byte array.
|
|
ReadByteLine ( bool &hitStreamEnd ) : byte[] |
Reads a line from the stack delimited by the newline for this platform. The newline characters will not be included in the stream
|
|
ReadLine ( ) : string |
Reads a line from the stack delimited by the newline for this platform. The newline characters will not be included in the stream
|
|
ReadLine ( bool &hitStreamEnd ) : string |
Reads a line from the stack delimited by the newline for this platform. The newline characters will not be included in the stream
|
Méthode | Description | |
---|---|---|
NextStream ( ) : |
Removes the current reader from the stack and ensures it is correctly destroyed and then returns the next available reader. If no reader is available this method returns null.
|
public BinaryStreamStack ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public BinaryStreamStack ( |
||
encoding | /// The encoding to use for character based operations. /// | |
Résultat | System.Collections.Generic |
public Push ( byte data ) : void | ||
data | byte | /// The data to add to the stack. /// |
Résultat | void |
public Read ( byte buffer, int index, int count ) : int | ||
buffer | byte | /// The buffer to read data into. /// |
index | int | /// The index of buffer to start reading into. /// |
count | int | /// The number of bytes to read into the buffer. /// |
Résultat | int |
public Read ( char buffer, int index, int count ) : int | ||
buffer | char | /// The buffer to read data into. /// |
index | int | /// The index of buffer to start reading into. /// |
count | int | /// The number of characters to read into the buffer. /// |
Résultat | int |
public ReadByteLine ( bool &hitStreamEnd ) : byte[] | ||
hitStreamEnd | bool | /// This will be set to true if we did not end on a newline but instead found the end of /// our data. /// |
Résultat | byte[] |
public ReadLine ( bool &hitStreamEnd ) : string | ||
hitStreamEnd | bool | /// This will be set to true if we did not end on a newline but instead found the end of /// our data. /// |
Résultat | string |