Lines Matching defs:data

58         /// <param name="data">The data to update the checksum with</param>

59 /// <param name="offset">Where in <c>data</c> to start updating</param>
60 /// <param name="count">The number of bytes from <c>data</c> to use</param>
61 /// <exception cref="ArgumentException">The sum of offset and count is larger than the length of <c>data</c></exception>
62 /// <exception cref="NullReferenceException"><c>data</c> is a null reference</exception>
66 public abstract void Update(byte[] data, int offset, int count);
71 /// <param name="data">The data to update the checksum with</param>
72 public void Update(byte[] data)
74 Update(data, 0, data.Length);
78 /// Updates the current checksum with the data from a string
80 /// <param name="data">The string to update the checksum with</param>
82 public void Update(string data)
84 Update(Encoding.UTF8.GetBytes(data));
88 /// Updates the current checksum with the data from a string, using a specific encoding
90 /// <param name="data">The string to update the checksum with</param>
92 public void Update(string data, Encoding encoding)
94 Update(encoding.GetBytes(data));
109 private static extern uint crc32(uint crc, int data, uint length);
127 /// <param name="data">The data to update the checksum with</param>
128 /// <param name="offset">Where in <c>data</c> to start updating</param>
129 /// <param name="count">The number of bytes from <c>data</c> to use</param>
130 /// <exception cref="ArgumentException">The sum of offset and count is larger than the length of <c>data</c></exception>
131 /// <exception cref="NullReferenceException"><c>data</c> is a null reference</exception>
133 public override void Update(byte[] data, int offset, int count)
136 if ((offset+count) > data.Length) throw new ArgumentException();
137 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned);
153 /// Implements a checksum generator that computes the Adler checksum on data
160 private static extern uint adler32(uint adler, int data, uint length);
178 /// <param name="data">The data to update the checksum with</param>
179 /// <param name="offset">Where in <c>data</c> to start updating</param>
180 /// <param name="count">The number of bytes from <c>data</c> to use</param>
181 /// <exception cref="ArgumentException">The sum of offset and count is larger than the length of <c>data</c></exception>
182 /// <exception cref="NullReferenceException"><c>data</c> is a null reference</exception>
184 public override void Update(byte[] data, int offset, int count)
187 if ((offset+count) > data.Length) throw new ArgumentException();
188 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned);