Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Add() [2/5]

void System.Xml.Resolvers.XmlPreloadedResolver.Add ( Uri uri,
byte[] value,
int offset,
int count )
inline

Definition at line 257 of file XmlPreloadedResolver.cs.

258 {
259 if (uri == null)
260 {
261 throw new ArgumentNullException("uri");
262 }
263 if (value == null)
264 {
265 throw new ArgumentNullException("value");
266 }
267 if (count < 0)
268 {
269 throw new ArgumentOutOfRangeException("count");
270 }
271 if (offset < 0)
272 {
273 throw new ArgumentOutOfRangeException("offset");
274 }
275 if (value.Length - offset < count)
276 {
277 throw new ArgumentOutOfRangeException("count");
278 }
279 Add(uri, new ByteArrayChunk(value, offset, count));
280 }

References System.Add, System.count, System.offset, and System.value.