public Variant ReadArray(bool withType = false)
{
if (withType) ReadByte();
var temp = ReadU29();
if ((temp & 0x01) == 0)
{
return _objects[(int)temp >> 1] as Variant;
}
var result = Variant.Get();
result.IsArray = true;
var key = ReadAMFString();
while (!string.IsNullOrEmpty(key))
{
result[key] = ReadVariant();
key = ReadAMFString();
}
var denseSize = temp >> 1;
for (var i = 0; i < denseSize; i++)
{
result[i] = ReadVariant();
}
_objects.Add(result);
return result;
}
public Variant ReadByteArray(bool readType = false)