WriteByte Method

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image
Write a byte consisting of 1-8 bits to a buffer; assumes buffer is previously allocated

Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)

Syntax

C#
public static void WriteByte(
	byte source,
	int numberOfBits,
	byte[] destination,
	int destBitOffset
)
Visual Basic
Public Shared Sub WriteByte ( _
	source As Byte, _
	numberOfBits As Integer, _
	destination As Byte(), _
	destBitOffset As Integer _
)
Visual C++
public:
static void WriteByte(
	unsigned char source, 
	int numberOfBits, 
	array<unsigned char>^ destination, 
	int destBitOffset
)

Parameters

source
Type: System..::..Byte

[Missing <param name="source"/> documentation for "M:Lidgren.Network.NetBitWriter.WriteByte(System.Byte,System.Int32,System.Byte[],System.Int32)"]

numberOfBits
Type: System..::..Int32

[Missing <param name="numberOfBits"/> documentation for "M:Lidgren.Network.NetBitWriter.WriteByte(System.Byte,System.Int32,System.Byte[],System.Int32)"]

destination
Type: array<System..::..Byte>[]()[][]

[Missing <param name="destination"/> documentation for "M:Lidgren.Network.NetBitWriter.WriteByte(System.Byte,System.Int32,System.Byte[],System.Int32)"]

destBitOffset
Type: System..::..Int32

[Missing <param name="destBitOffset"/> documentation for "M:Lidgren.Network.NetBitWriter.WriteByte(System.Byte,System.Int32,System.Byte[],System.Int32)"]

See Also