NetworkedBehaviour NetworkedObject NetworkingManager RpcMethod RpcMethod<T1> RpcMethod<T1,T2> RpcMethod<T1,T2,T3> RpcMethod<T1,T2,T3,T4> RpcMethod<T1,T2,T3,T4,T5> RpcMethod<T1,T2,T3,T4,T5,T6> RpcMethod<T1,T2,T3,T4,T5,T6,T7> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32> ResponseRpcMethod<TResult> ResponseRpcMethod<TResult,T1> ResponseRpcMethod<TResult,T1,T2> ResponseRpcMethod<TResult,T1,T2,T3> ResponseRpcMethod<TResult,T1,T2,T3,T4> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32> VisibilityDelegate ConnectionApprovedDelegate CustomMessageDelegete

PooledBitStream class

Namespace: MLAPI.Serialization.Pooled

Assembly: MLAPI.dll

Disposable BitStream that returns the Stream to the BitStreamPool when disposed

Inherited Properties

public bool Resizable { get; }

Inherited from: BitStream

Whether or not the stream will grow the buffer to accomodate more data.

public float GrowthFactor { get; set; }

Inherited from: BitStream

Factor by which buffer should grow when necessary.

public bool CanRead { get; }

Inherited from: BitStream

Whether or not stream supports reading. (Always true)

public bool HasDataToRead { get; }

Inherited from: BitStream

Whether or not or there is any data to be read from the stream.

public bool CanSeek { get; }

Inherited from: BitStream

Whether or not seeking is supported by this stream. (Always true)

public bool CanWrite { get; }

Inherited from: BitStream

Whether or not this stream can accept new data. NOTE: this will return true even if only fewer than 8 bits can be written!

public long Capacity { get; set; }

Inherited from: BitStream

Current buffer size. The buffer will not be resized (if possible) until Position is equal to Capacity and an attempt to write data is made.

public long Length { get; }

Inherited from: BitStream

The current length of data considered to be "written" to the buffer.

public long Position { get; set; }

Inherited from: BitStream

The index that will be written to when any call to write data is made to this stream.

public ulong BitPosition { get; set; }

Inherited from: BitStream

Bit offset into the buffer that new data will be written to.

public ulong BitLength { get; }

Inherited from: BitStream

Length of data (in bits) that is considered to be written to the stream.

public bool BitAligned { get; }

Inherited from: BitStream

Whether or not the current BitPosition is evenly divisible by 8. I.e. whether or not the BitPosition is at a byte boundary.

public bool CanTimeout { get; }

Inherited from: Stream

public int ReadTimeout { get; set; }

Inherited from: Stream

public int WriteTimeout { get; set; }

Inherited from: Stream


Public Constructors

public PooledBitStream();


Public Methods

public void Dispose();

Returns the PooledBitStream into the static BitStreamPool



Public Static Methods

public static PooledBitStream Get();

Gets a PooledBitStream from the static BitStreamPool

Returns PooledBitStream

PooledBitStream



Inherited Methods

public void Flush();

Inherited from: BitStream

Flush stream. This does nothing since data is written directly to a byte buffer.


public int ReadByte();

Inherited from: BitStream

Read a byte from the buffer. This takes into account possible byte misalignment.

Returns int

A byte from the buffer or, if a byte can't be read, -1.


public int PeekByte();

Inherited from: BitStream

Peeks a byte without advancing the position

Returns int

The peeked byte


public bool ReadBit();

Inherited from: BitStream

Read a single bit from the stream.

Returns bool

A bit in bool format. (True represents 1, False represents 0)


public int Read(byte[] buffer, int offset, int count);

Inherited from: BitStream

Read a subset of the stream buffer and write the contents to the supplied buffer.

Parameters

byte[] buffer

Buffer to copy data to.

int offset

Offset into the buffer to write data to.

int count

How many bytes to attempt to read.

Returns int

Amount of bytes read.


public long Seek(long offset, SeekOrigin origin);

Inherited from: BitStream

Set position in stream to read from/write to.

Parameters

long offset

Offset from position origin.

SeekOrigin origin

How to calculate offset.

Returns long

The new position in the buffer that data will be written to.


public void SetLength(long value);

Inherited from: BitStream

Set length of data considered to be "written" to the stream.

Parameters

long value

New length of the written data.


public void Write(byte[] buffer, int offset, int count);

Inherited from: BitStream

Write data from the given buffer to the internal stream buffer.

Parameters

byte[] buffer

Buffer to write from.

int offset

Offset in given buffer to start reading from.

int count

Amount of bytes to read copy from given buffer to stream buffer.


public void WriteByte(byte value);

Inherited from: BitStream

Write byte value to the internal stream buffer.

Parameters

byte value

The byte value to write.


public void Write(byte[] buffer);

Inherited from: BitStream

Write data from the given buffer to the internal stream buffer.

Parameters

byte[] buffer

Buffer to write from.


public void WriteBit(bool bit);

Inherited from: BitStream

Write a single bit to the stream

Parameters

bool bit

Value of the bit. True represents 1, False represents 0


public void CopyFrom(Stream s, int count);

Inherited from: BitStream

Copy data from another stream

Parameters

Stream s

Stream to copy from

int count

How many bytes to read. Set to value less than one to read until ReadByte returns -1


public void CopyTo(Stream stream, int count);

Inherited from: BitStream

Copies internal buffer to stream

Parameters

Stream stream

The stream to copy to

int count

The maximum amount of bytes to copy. Set to value less than one to copy the full length


public void CopyUnreadFrom(Stream s, int count);

Inherited from: BitStream

Copies urnead bytes from the source stream

Parameters

Stream s

The source stream to copy from

int count

The max amount of bytes to copy


public void CopyFrom(BitStream stream, int dataCount, bool copyBits);

Inherited from: BitStream

Copys the bits from the provided BitStream

Parameters

BitStream stream

The stream to copy from

int dataCount

The amount of data evel

bool copyBits

Whether or not to copy at the bit level rather than the byte level


public byte[] GetBuffer();

Inherited from: BitStream

Get the internal buffer being written to by this stream.

Returns byte[]


public byte[] ToArray();

Inherited from: BitStream

Creates a copy of the internal buffer. This only contains the used bytes

Returns byte[]

A copy of used bytes in the internal buffer


public void PadStream();

Inherited from: BitStream

Writes zeros to fill the last byte


public void SkipPadBits();

Inherited from: BitStream

Reads zeros until the the stream is byte aligned


public string ToString();

Inherited from: BitStream

Returns hex encoded version of the buffer

Returns string

Hex encoded version of the buffer


public Task CopyToAsync(Stream destination);

Inherited from: Stream
Parameters

Stream destination


public Task CopyToAsync(Stream destination, int bufferSize);

Inherited from: Stream
Parameters

Stream destination

int bufferSize


public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken);

Inherited from: Stream
Parameters

Stream destination

int bufferSize

CancellationToken cancellationToken


public void CopyTo(Stream destination);

Inherited from: Stream
Parameters

Stream destination


public void CopyTo(Stream destination, int bufferSize);

Inherited from: Stream
Parameters

Stream destination

int bufferSize


public void Close();

Inherited from: Stream

public void Dispose();

Inherited from: Stream

public Task FlushAsync();

Inherited from: Stream

public Task FlushAsync(CancellationToken cancellationToken);

Inherited from: Stream
Parameters

CancellationToken cancellationToken


public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count

AsyncCallback callback

object state


public int EndRead(IAsyncResult asyncResult);

Inherited from: Stream
Parameters

IAsyncResult asyncResult


public Task<int> ReadAsync(byte[] buffer, int offset, int count);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count


public Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count

CancellationToken cancellationToken


public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count

AsyncCallback callback

object state


public void EndWrite(IAsyncResult asyncResult);

Inherited from: Stream
Parameters

IAsyncResult asyncResult


public Task WriteAsync(byte[] buffer, int offset, int count);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count


public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);

Inherited from: Stream
Parameters

byte[] buffer

int offset

int count

CancellationToken cancellationToken


public object GetLifetimeService();

Inherited from: MarshalByRefObject

public object InitializeLifetimeService();

Inherited from: MarshalByRefObject

public ObjRef CreateObjRef(Type requestedType);

Inherited from: MarshalByRefObject
Parameters

Type requestedType


public bool Equals(object obj);

Inherited from: object
Parameters

object obj


public int GetHashCode();

Inherited from: object

public Type GetType();

Inherited from: object