Microsoft.R.Host.Client.RBlobStream.Write C# (CSharp) Method

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void
        public override void Write(byte[] buffer, int offset, int count) {
            byte[] bytesToSend = null;
            if (offset != 0 || count != buffer.Length) {
                bytesToSend = new byte[count];
                Array.Copy(buffer, offset, bytesToSend, 0, count);
            } else {
                bytesToSend = buffer;
            }

            _length = _blobService.BlobWriteAsync(_blob.Id, bytesToSend, _position).GetAwaiter().GetResult();
            _position += count;
        }