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 InboundSendBuffer
Fields
buffer
Pointer to the buffer's data (without pipeline stage header).
Declaration
public byte* buffer
Field Value
Type | Description |
---|---|
byte* |
bufferLength
Length of the buffer (without pipeline stage header).
Declaration
public int bufferLength
Field Value
Type | Description |
---|---|
int |
bufferWithHeaders
Pointer to the buffer's data (with pipeline stage header).
Declaration
public byte* bufferWithHeaders
Field Value
Type | Description |
---|---|
byte* |
bufferWithHeadersLength
Length of the buffer (with pipeline stage header).
Declaration
public int bufferWithHeadersLength
Field Value
Type | Description |
---|---|
int |
headerPadding
Length of the pipeline stage header.
Declaration
public int headerPadding
Field Value
Type | Description |
---|---|
int |
Methods
SetBufferFromBufferWithHeaders()
Add enough padding to the buffer for the pipeline stage header.
Declaration
public void SetBufferFromBufferWithHeaders()