WriteBytes() public static method

Writes length delimited byte array
public static WriteBytes ( System.Stream stream, byte val ) : void
stream System.Stream
val byte
return void
Example #1
0
 public static void WriteString(Stream stream, string val)
 {
     ProtocolParser.WriteBytes(stream, Encoding.UTF8.GetBytes(val));
 }
Example #2
0
 public static void Write(this Stream stream, byte[] bytes)
 {
     ProtocolParser.WriteBytes(stream, bytes);
 }