public static Write32BitEncodedInt ( this stream, int value ) : void | ||
stream | this | |
value | int | |
Résultat | void |
public static void Write32BitEncodedInt(this Stream stream, int value)
{
// Naive implementation
var bytes = BitConverter.GetBytes(value);
stream.Write(bytes, 0, bytes.Length);
}