public static object[] GetDataTypes(byte[] value) { if (value == null || value.Length == 0) { return(new object[0]); } List <object> list = new List <object>(); GXDataInfo info = new GXDataInfo(); return((object[])GXCommon.GetCompactArray(null, new GXByteBuffer(value), info, true)); }
public static List <object> GetDataTypes(byte[] value) { if (value == null || value.Length == 0) { return(new List <object>()); } GXDataInfo info = new GXDataInfo(); object ret = GXCommon.GetCompactArray(null, new GXByteBuffer(value), info, true); return((List <object>)ret); }
public static List <object> GetData(byte[] columns, byte[] value, bool AppendAA) { if (columns == null || columns.Length == 0 || value == null || value.Length == 0) { return(new GXArray()); } List <DataType> list = new List <DataType>(); GXDataInfo info = new GXDataInfo(); info.AppendAA = AppendAA; GXByteBuffer bb = new GXByteBuffer(); bb.Set(columns); GXCommon.SetObjectCount(value.Length, bb); bb.Set(value); List <object> tmp = (List <object>)GXCommon.GetCompactArray(null, bb, info, false); return(tmp); }
public static object[][] GetData(byte[] columns, byte[] value, bool AppendAA) { List <object[]> row = new List <object[]>(); if (columns == null || columns.Length == 0 || value == null || value.Length == 0) { return(row.ToArray()); } List <DataType> list = new List <DataType>(); GXDataInfo info = new GXDataInfo(); info.AppendAA = AppendAA; GXByteBuffer bb = new GXByteBuffer(); bb.Set(columns); GXCommon.SetObjectCount(value.Length, bb); bb.Set(value); object[] tmp = (object[])GXCommon.GetCompactArray(null, bb, info, false); row.Add((object[])tmp[0]); return(row.ToArray()); }