Lines Matching defs:offset
146 /// <param name="offset">The index of the first destination byte in <c>buffer</c></param>
150 /// <exception cref="ArgumentOutOfRangeException">If <c>count</c> or <c>offset</c> are negative</exception>
151 /// <exception cref="ArgumentException">If <c>offset</c> + <c>count</c> is > buffer.Length</exception>
154 public override int Read(byte[] buffer, int offset, int count)
158 if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException();
159 if ((offset+count) > buffer.Length) throw new ArgumentException();
166 result = gzread(_gzFile, h.AddrOfPinnedObject().ToInt32() + offset, count);
192 /// <param name="offset"></param>
195 /// <exception cref="ArgumentOutOfRangeException">If <c>count</c> or <c>offset</c> are negative</exception>
196 /// <exception cref="ArgumentException">If <c>offset</c> + <c>count</c> is > buffer.Length</exception>
199 public override void Write(byte[] buffer, int offset, int count)
203 if (offset < 0 || count < 0) throw new ArgumentOutOfRangeException();
204 if ((offset+count) > buffer.Length) throw new ArgumentException();
210 int result = gzwrite(_gzFile, h.AddrOfPinnedObject().ToInt32() + offset, count);
251 /// <param name="offset"></param>
255 public override long Seek(long offset, SeekOrigin origin)