C# MemoryStream WriteByte
Description
MemoryStream WriteByte
Writes a byte to the current stream
at the current position.
Syntax
MemoryStream.WriteByte
has the following syntax.
public override void WriteByte(
byte value
)
Parameters
MemoryStream.WriteByte
has the following parameters.
value
- The byte to write.
Returns
MemoryStream.WriteByte
method returns
Example
//from w w w .ja va 2 s .com
using System.IO;
using System;
public class MainClass{
public static void Main(String[] argv){
MemoryStream memStream = new MemoryStream();
memStream.WriteByte(1);
}
}