public override void Read(Library.Collections.BitStream stream, out TItem[] value, MySerializeInfo info) { int num = (int)stream.ReadUInt32Variant(); value = new TItem[num]; for (int i = 0; i < value.Length; i++) { MySerializationHelpers.CreateAndRead <TItem>(stream, out value[i], m_itemSerializer, info.ItemInfo ?? MySerializeInfo.Default); } }
public override void Read(Library.Collections.BitStream stream, out UInt16 value, MySerializeInfo info) { if (info.IsVariant || info.IsVariantSigned) { value = (UInt16)stream.ReadUInt32Variant(); } else { value = stream.ReadUInt16(); } }