piker00 / simdesign

Automatically exported from code.google.com/p/simdesign
1 stars 0 forks source link

TByteArray is being used to access buffers which limits Node values to less than 32KB #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When create an XML with a large node value, 32KB or greater, function 
TsdBufferWriter.Write(const Buffer; Count: Integer): Longint;
 is failing as TByteArray has a 32KB limit.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Trunk r71, Windows 7 Professional, Delphi XE2

Please provide any additional information below.

As a quick work around I have added the following to my local NativeXML.pas
type
  TBigByteArray = array[0..2147483646] of byte; // 2GB - 2, This should never be instantiated, it's used as TByteArray indexing is limited to <32KB

and renamed all instances of TByteArray to TBigByteArray

Original issue reported on code.google.com by nz.mark....@gmail.com on 10 Jun 2014 at 3:56