private static void ReleaseReceiveBuffer(WorkSpace buffer) { Marshal.FreeHGlobal(buffer.Address); }
private void SendRequest(WorkSpace sendBuffer) { byte[] numArray = new byte[sendBuffer.Size]; Marshal.Copy(sendBuffer.Address, numArray, 0, sendBuffer.Size); this._connection.Send(numArray, sendBuffer.Size); }