ReadList() public static method

Reads a list value from a buffer.
public static ReadList ( System.ByteBuffer buffer, byte formatCode ) : List
buffer System.ByteBuffer The buffer to read.
formatCode byte The format code of the value.
return List
        internal override void DecodeValue(ByteBuffer buffer)
        {
            var list  = Encoder.ReadList(buffer, Encoder.ReadFormatCode(buffer));
            int count = list.Count < this.fields.Length ? list.Count : this.fields.Length;

            for (int i = 0; i < count; i++)
            {
                this.fields[i] = list[i];
            }
        }