Struct InboundSendBuffer
Buffer passed to the Send method of a pipeline stage. This type is only useful if
implementing a custom INetworkPipelineStage.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public struct InboundSendBufferFields
buffer
Pointer to the buffer's data (without pipeline stage header).
Declaration
public byte* bufferField Value
| Type | Description | 
|---|---|
| byte* | 
bufferLength
Length of the buffer (without pipeline stage header).
Declaration
public int bufferLengthField Value
| Type | Description | 
|---|---|
| int | 
bufferWithHeaders
Pointer to the buffer's data (with pipeline stage header).
Declaration
public byte* bufferWithHeadersField Value
| Type | Description | 
|---|---|
| byte* | 
bufferWithHeadersLength
Length of the buffer (with pipeline stage header).
Declaration
public int bufferWithHeadersLengthField Value
| Type | Description | 
|---|---|
| int | 
headerPadding
Length of the pipeline stage header.
Declaration
public int headerPaddingField Value
| Type | Description | 
|---|---|
| int | 
Methods
SetBufferFromBufferWithHeaders()
Add enough padding to the buffer for the pipeline stage header.
Declaration
public void SetBufferFromBufferWithHeaders()