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

◆ ReadContentAsBinary()

int System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinary ( byte[] buffer,
int index,
int count )
inlineprivate

Definition at line 319 of file ReadContentAsBinaryHelper.cs.

320 {
321 if (_isEnd)
322 {
323 Reset();
324 return 0;
325 }
327 do
328 {
330 {
331 while (true)
332 {
334 {
336 _valueOffset += num;
337 }
338 if (_decoder.IsFull)
339 {
340 return _decoder.DecodedCount;
341 }
343 {
344 break;
345 }
346 _valueOffset = 0;
347 }
348 }
349 else
350 {
351 string value = _reader.Value;
354 if (_decoder.IsFull)
355 {
356 return _decoder.DecodedCount;
357 }
358 }
359 _valueOffset = 0;
360 }
362 _isEnd = true;
363 return _decoder.DecodedCount;
364 }
int Decode(char[] chars, int startPos, int len)
void SetNextOutputBuffer(Array array, int offset, int len)
bool MoveToNextContentNode(bool moveIfOnContentNode)
virtual int ReadValueChunk(char[] buffer, int index, int count)
Definition XmlReader.cs:564

References System.Xml.ReadContentAsBinaryHelper._canReadValueChunk, System.Xml.ReadContentAsBinaryHelper._decoder, System.Xml.ReadContentAsBinaryHelper._isEnd, System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._valueChunk, System.Xml.ReadContentAsBinaryHelper._valueChunkLength, System.Xml.ReadContentAsBinaryHelper._valueOffset, System.buffer, System.count, System.Xml.IncrementalReadDecoder.Decode(), System.Xml.IncrementalReadDecoder.DecodedCount, System.Xml.Dictionary, System.index, System.Xml.IncrementalReadDecoder.IsFull, System.Xml.ReadContentAsBinaryHelper.MoveToNextContentNode(), System.Xml.XmlReader.ReadValueChunk(), System.Xml.ReadContentAsBinaryHelper.Reset(), System.Xml.IncrementalReadDecoder.SetNextOutputBuffer(), System.value, and System.Xml.XmlReader.Value.

Referenced by System.Xml.ReadContentAsBinaryHelper.ReadContentAsBase64(), System.Xml.ReadContentAsBinaryHelper.ReadContentAsBinHex(), and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinary().