Code Red > .NET

ResultBuffer's capacity?

(1/3) > >>

gswang:
Xrecord can store ResultBuffer type data, but what is its maximum capacity?
thank you very much!

Keith Brown:
The size of an xrecord is technically unlimited I believe.  The maximum size of a result buffer is I believe 127 bytes.

Keith™:

--- Quote from: Keith Brown on June 10, 2017, 07:14:48 AM ---The size of an xrecord is technically unlimited I believe.  The maximum size of a result buffer is I believe 127 bytes.

--- End quote ---

I am reading large files into a resultbuffer and storing them as xRecords
Something like this works without issue


--- Code - C#: ---string Notes = "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?";ResultBuffer rb = new ResultBuffer(new TypedValue((int)DxfCode.Text, Notes));

Keith Brown:
Here is a link that has some more info.


https://www.theswamp.org/index.php?topic=52504.msg574801#msg574801


In that thread there is another link that discusses compressing the info before storing in the result buffer.

gswang:
Thank you, Keith and Keith Brown!

Navigation

[0] Message Index

[#] Next page

Go to full version