Exemplo n.º 1
0
        private static TKey GetKey(bool isNativeType, byte keyType, BssmapAnalysisStack stack, byte valueByteCount)
        {
            if (keyType != staticKeyResolver.KeyType && isNativeType != staticKeyResolver.KeyIsNativeType)
            {
                return(BssomSerializationOperationException.UnexpectedCodeRead <TKey>());
            }

            return(staticKeyResolver.ReadMap2Key(stack.ToUlongs((byte)valueByteCount)));
        }
Exemplo n.º 2
0
        private static TKey GetObjectKey(bool isNativeType, byte keyType, BssmapAnalysisStack stack, byte valueByteCount)
        {
            IBssMapKeyResolver convert = BssMapKeyResolverProvider.GetAndVertiyBssMapKeyResolver(isNativeType, keyType);

            return((TKey)convert.ReadMap2Key(stack.ToUlongs((byte)valueByteCount)));
        }