Method | Description | |
---|---|---|
Bookmark ( this stream ) : |
Creates a StreamBookmark.
|
|
CountBytesUntil ( this stream, byte target ) : long |
Counts the number of bytes between the current position and the target byte sequence. The starting position is returned to once the target is found or the end of the stream is reached.
|
|
CountBytesUntil ( this stream, string target, |
Counts the number of bytes between the current position and the target string. The starting position is returned to once the target is found or the end of the stream is reached.
|
|
CountBytesUntilAny ( this stream, byte targets, byte &targetFound ) : long |
Counts the number of bytes between the current position and the first occurrence of any of the target byte sequences. The starting position is returned to once a target is found or the end of the stream is reached.
|
|
CountBytesUntilAny ( this stream, string targets, string &targetFound, |
Counts the number of bytes between the current position and the first occurrence of any of the target strings. The starting position is returned to once a target is found or the end of the stream is reached.
|
|
EnumerateBytes ( this stream ) : IEnumerable |
||
EnumerateBytesUntil ( this stream, byte target, bool positionAfterTarget = false ) : IEnumerable |
Enumerates the bytes until the target begins or the end of the stream.
|
|
EnumerateBytesUntil ( this stream, string target, bool positionAfterTarget = false, |
Enumerates the bytes until the target begins or the end of the stream.
|
|
EnumerateBytesUntilAny ( this stream, byte targets, bool positionAfterTarget = false ) : IEnumerable |
Enumerates the bytes until any of the target byte sequences begin or the end of the stream.
|
|
EnumerateBytesUntilAny ( this stream, string targets, bool positionAfterTarget = false, |
Enumerates the bytes until any of the target strings begin or the end of the stream.
|
|
SeekEndOf ( this stream, byte target ) : bool |
Seeks to the position after the end of the next occurrence of the target byte sequence in the stream.
|
|
SeekEndOf ( this stream, string target, |
Seeks to the position after the end of the next occurrence of the target string in the stream.
|
|
SeekEndOfAny ( this stream ) : byte[] |
Seeks to the position after the end of the next occurrence of any of the target byte sequences found in the stream.
|
|
SeekEndOfAny ( this stream ) : string |
Seeks to the position after the end of the next occurrence of any of the target strings found in the stream.
|
|
SeekEndOfAny ( this stream, |
Seeks to the position after the end of the next occurrence of any of the target strings found in the stream.
|
|
SeekStartOf ( this stream, byte target ) : bool |
Seeks to the position of the next occurrence of the target byte sequence in the stream.
|
|
SeekStartOf ( this stream, string target, |
Seeks to the position of the next occurrence of the target string in the stream.
|
|
SeekStartOfAny ( this stream ) : byte[] |
Seeks to the position after the end of the next occurrence of any of the target byte sequences found in the stream.
|
|
SeekStartOfAny ( this stream ) : string |
Seeks to the position after the end of the next occurrence of any of the target byte sequences found in the stream.
|
|
SeekStartOfAny ( this stream, |
Seeks to the position after the end of the next occurrence of any of the target byte sequences found in the stream.
|
|
ToMemoryStream ( this |
public static Bookmark ( this stream ) : |
||
stream | this | |
return |
public static CountBytesUntil ( this stream, byte target ) : long | ||
stream | this | |
target | byte | |
return | long |
public static CountBytesUntil ( this stream, string target, |
||
stream | this | |
target | string | |
encoding | ||
return | long |
public static CountBytesUntilAny ( this stream, byte targets, byte &targetFound ) : long | ||
stream | this | |
targets | byte | |
targetFound | byte | |
return | long |
public static CountBytesUntilAny ( this stream, string targets, string &targetFound, |
||
stream | this | |
targets | string | |
targetFound | string | The string that was found first or null if no target was found. |
encoding | ||
return | long |
public static EnumerateBytes ( this stream ) : IEnumerable |
||
stream | this | |
return | IEnumerable |
public static EnumerateBytesUntil ( this stream, byte target, bool positionAfterTarget = false ) : IEnumerable |
||
stream | this | |
target | byte | The target to search for. |
positionAfterTarget | bool | True to seek to the end of the target after enumeration; false to keep position at beginning of target. |
return | IEnumerable |
public static EnumerateBytesUntil ( this stream, string target, bool positionAfterTarget = false, |
||
stream | this | |
target | string | The target to search for. |
positionAfterTarget | bool | True to seek to the end of the target after enumeration; false to keep position at beginning of target. |
encoding | The encoding used to decode the target string. | |
return | IEnumerable |
public static EnumerateBytesUntilAny ( this stream, byte targets, bool positionAfterTarget = false ) : IEnumerable |
||
stream | this | |
targets | byte | The targets to search for. |
positionAfterTarget | bool | True to seek to the end of the found target after enumeration; false to keep position at beginning of target. |
return | IEnumerable |
public static EnumerateBytesUntilAny ( this stream, string targets, bool positionAfterTarget = false, |
||
stream | this | |
targets | string | The targets to search for. |
positionAfterTarget | bool | True to seek to the end of the found target after enumeration; false to keep position at beginning of target. |
encoding | The encoding used to decode the target strings. | |
return | IEnumerable |
public static SeekEndOf ( this stream, byte target ) : bool | ||
stream | this | |
target | byte | |
return | bool |
public static SeekEndOf ( this stream, string target, |
||
stream | this | |
target | string | |
encoding | ||
return | bool |
public static SeekEndOfAny ( this stream ) : byte[] | ||
stream | this | |
return | byte[] |
public static SeekEndOfAny ( this stream ) : string | ||
stream | this | |
return | string |
public static SeekEndOfAny ( this stream, |
||
stream | this | |
encoding | ||
return | string |
public static SeekStartOf ( this stream, byte target ) : bool | ||
stream | this | |
target | byte | |
return | bool |
public static SeekStartOf ( this stream, string target, |
||
stream | this | |
target | string | |
encoding | ||
return | bool |
public static SeekStartOfAny ( this stream ) : byte[] | ||
stream | this | |
return | byte[] |
public static SeekStartOfAny ( this stream ) : string | ||
stream | this | |
return | string |
public static SeekStartOfAny ( this stream, |
||
stream | this | |
encoding | ||
return | string |
public static ToMemoryStream ( this |
||
bytes | this |
|
return |