_data.Length is usually much larger than _actualLength to save on ResizeArray calls

This commit is contained in:
Michael Becker 2019-11-23 21:14:12 -05:00
parent 8e025b8589
commit d6e08850e2
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -61,7 +61,7 @@ namespace UniversalEditor.Accessors
}
public override long Length
{
get { return _data.Length; }
get { return _actualLength; }
set
{
// resize the array - coded by hand to compile happily under Cosmos devkit