Struct InboundRecvBuffer
Buffer passed to the Receive
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 InboundRecvBuffer
Fields
buffer
Pointer to the buffer's data.
Declaration
public byte* buffer
Field Value
Type | Description |
---|---|
byte* |
bufferLength
Length of the buffer.
Declaration
public int bufferLength
Field Value
Type | Description |
---|---|
int |
Methods
Slice(int)
Get a slice of the buffer at the give offset.
Declaration
public InboundRecvBuffer Slice(int offset)
Parameters
Type | Name | Description |
---|---|---|
int | offset | Offset at which to slice the buffer. |
Returns
Type | Description |
---|---|
InboundRecvBuffer | Sliced buffer. |