Tries to read a buffer and parse out an IRC statement.
Additionally, on failure, the reason for failure is returned.
Namespace: NetIrc2.ParsingAssembly: NetIrc2 (in NetIrc2.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool TryParse( byte[] buffer, ref int offset, int count, out IrcStatement statement, out IrcStatementParseResult parseResult )
Parameters
- buffer
- Type: System Byte
The buffer to read from.
- offset
- Type: System Int32
The offset to begin reading. The parser may advance this, even if parsing fails.
- count
- Type: System Int32
The maximum number of bytes to read.
- statement
- Type: NetIrc2.Parsing IrcStatement
The statement, if parsing succeeds, or null.
- parseResult
- Type: NetIrc2.Parsing IrcStatementParseResult
The result of parsing. On failure, this is the reason for the failure.
Return Value
true if parsing succeeded.See Also