public BINValue(IBINValue parent, uint property, object value, BINValueType type) { this.Parent = parent; this.Property = property; this.Value = value; this.Type = type; }
public BINMap(IBINValue parent, BINValueType keyType, BINValueType valueType, Dictionary <BINValue, BINValue> values) { this.Parent = parent; this.KeyType = keyType; this.ValueType = valueType; this.Values = values; }
private static bool IsPrimitiveValue(BINValueType type) { if (type != BINValueType.Container && type != BINValueType.Structure && type != BINValueType.Embedded && type != BINValueType.Map && type != BINValueType.OptionalData) { return(true); } return(false); }
public static BINValueType PackType(BINValueType type) { if ((int)type >= 18 && (int)type <= 24) { type = (BINValueType)(((int)type - 18) | COMPLEX_TYPE_FLAG); } return(type); }
public static BINValueType UnpackType(BINValueType type) { if (((int)type & COMPLEX_TYPE_FLAG) == COMPLEX_TYPE_FLAG) { type -= COMPLEX_TYPE_FLAG; type += 18; } return(type); }
private static bool IsPrimitiveType(BINValueType type) { return(type != BINValueType.Container && type != BINValueType.Embedded && type != BINValueType.Structure && type != BINValueType.LinkOffset && type != BINValueType.Map && type != BINValueType.Optional && type != BINValueType.Hash); }