public void SetBufferSize(ulong bufferSize) { Out123.Errors error = Out123NativeMethods.SetBuffer(handle, new UIntPtr(bufferSize)); if (error != Out123.Errors.OK) { throw new Out123.ErrorException(error); } }