BTDB.Buffer.ByteBuffer.ToAsyncSafe C# (CSharp) Method

ToAsyncSafe() public method

public ToAsyncSafe ( ) : ByteBuffer
return ByteBuffer
        public ByteBuffer ToAsyncSafe()
        {
            if (AsyncSafe) return this;
            var copy = new byte[_length];
            Array.Copy(_buffer, Offset, copy, 0, _length);
            return NewAsync(copy);
        }