コード例 #1
0
        internal override void Read(ProtocolFormatter formatter, int rows)
        {
            var nullStatuses = new SimpleColumnType <byte>();

            nullStatuses.Read(formatter, rows);
            Nulls = nullStatuses.Data.Select(x => x != 0).ToArray();
            InnerType.Read(formatter, rows);
        }
コード例 #2
0
        internal override void Read(ProtocolFormatter formatter, int rows)
        {
            switch (BaseSize)
            {
            case 8:
            {
                var vals = new SimpleColumnType <byte>();
                vals.Read(formatter, rows);
                Data = vals.Data.Select(x => (int)x).ToArray();
                break;
            }

            case 16:
            {
                var vals = new SimpleColumnType <short>();
                vals.Read(formatter, rows);
                Data = vals.Data.Select(x => (int)x).ToArray();
                break;
            }

            default:
                throw new NotSupportedException($"Enums with base size {BaseSize} are not supported.");
            }
        }
コード例 #3
0
 public ArrayColumnType(ColumnType innerType)
 {
     Offsets   = new SimpleColumnType <ulong>();
     InnerType = innerType;
 }