public int ArrayInt32Decode_1K_SBA_ToArray() { var reader = new AmqpReader(EncodedInt32Array1K); reader.MoveNext(); int[] ints = reader.GetInt32Array(); return(ints.Length); }
public void ReadArrayInt32() { var reader = new AmqpReader(_encodedInt32_1M); Assert.True(reader.MoveNext() == AmqpToken.Array); Assert.AreEqual(AmqpToken.Array, reader.CurrentType); int[] decoded = reader.GetInt32Array(); Assert.True(_randomInt32_1M.AsSpan().SequenceEqual(decoded)); }