internal AsyncConnectionBase(string server, int port, int perPacketSize, int bufferSize) { _server = server; _port = port; _storage = new NetworkBufferStorage(perPacketSize, bufferSize); }
internal NetworkBuffer(byte[] storageBuffer, int startsAt, int length, NetworkBufferStorage parent) { Debug.Assert(storageBuffer != null); Debug.Assert(startsAt < storageBuffer.Length); Debug.Assert(startsAt % 8 == 0); Debug.Assert(length % 8 == 0); _parent = parent; _underlyingBuffer = storageBuffer; _bufferStart = startsAt; _bufferLength = length; }