Lines Matching defs:count
147 /// <param name="count">The number of bytes requested</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);
193 /// <param name="count"></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);