public static void Initialize(MixedValueWrapper *v) { #if BLIT_VALUE && !GENERIC_BLIT_VALUE #elif BLIT_VALUE && GENERIC_BLIT_VALUE #else v->value = BlittableTypeWrapper.Create(default(MixedValue)); #endif }
public static void FreeFromContext(MixedValueWrapper *v) { #if BLIT_VALUE MallocFixedPageSize <MixedValueWrapper> .PhysicalInstance.FreeAtEpoch((long)v); #else ((BlittableTypeWrapper *)v)->Free <MixedValue>(); #endif }
public static void UpsertCompletionCallback(MixedKeyWrapper *key, MixedValueWrapper *value, MixedContextWrapper *ctx) { userFunctions.UpsertCompletionCallback( UserType.Convert(ctx)); UserType.FreeFromContext(key); UserType.FreeFromContext(value); UserType.FreeFromContext(ctx); }
public static ref MixedValue Convert(MixedValueWrapper *v) { #if BLIT_VALUE && !GENERIC_BLIT_VALUE return(ref v->value); #elif BLIT_VALUE && GENERIC_BLIT_VALUE return(ref Unsafe.AsRef <MixedValue>(v)); #else return(ref ((BlittableTypeWrapper *)v)->GetObject <MixedValue>()); #endif }
public static void AcquireWriteLock(MixedValueWrapper *value) { }
public static void Copy(MixedValueWrapper *src, MixedValueWrapper *dst) { dst->value = src->value; }
public static int GetLength(MixedValueWrapper *input) { return(sizeof(MixedValueWrapper)); }
public static void ConcurrentWriter(MixedKeyWrapper *key, MixedValueWrapper *src, MixedValueWrapper *dst) { MixedValueWrapper.AcquireWriteLock(dst); MixedValueWrapper.Copy(src, dst); MixedValueWrapper.ReleaseWriteLock(dst); }
public static void SingleWriter(MixedKeyWrapper *key, MixedValueWrapper *src, MixedValueWrapper *dst) { MixedValueWrapper.Copy(src, dst); }
public static void Free(MixedValueWrapper *key) { throw new InvalidOperationException(); }
public static void CopyUpdater(MixedKeyWrapper *key, MixedInputWrapper *input, MixedValueWrapper *oldValue, MixedValueWrapper *newValue) { UserType.Initialize(newValue); userFunctions.CopyUpdater( UserType.Convert(key), UserType.Convert(input), UserType.Convert(oldValue), ref UserType.Convert(newValue)); }
public static void InPlaceUpdater(MixedKeyWrapper *key, MixedInputWrapper *input, MixedValueWrapper *value) { MixedValueWrapper.AcquireWriteLock(value); userFunctions.InPlaceUpdater( UserType.Convert(key), UserType.Convert(input), ref UserType.Convert(value)); MixedValueWrapper.ReleaseWriteLock(value); }
public static void InitialUpdater(MixedKeyWrapper *key, MixedInputWrapper *input, MixedValueWrapper *value) { UserType.Initialize(value); userFunctions.InitialUpdater( UserType.Convert(key), UserType.Convert(input), ref UserType.Convert(value)); }
public static void Free(MixedValueWrapper *key) { throw new NotImplementedException(); }
public static void Deserialize(MixedValueWrapper *key, Stream fromStream) { throw new NotImplementedException(); }
public static void ReleaseWriteLock(MixedValueWrapper *value) { }
public static void Deserialize(MixedValueWrapper *key, Stream fromStream) { throw new InvalidOperationException(); }
public static void SingleReader(MixedKeyWrapper *key, MixedInputWrapper *input, MixedValueWrapper *value, MixedOutputWrapper *dst) { userFunctions.Reader( UserType.Convert(key), UserType.Convert(input), UserType.Convert(value), ref UserType.Convert(dst)); }
public static MixedValueWrapper *MoveToContext(MixedValueWrapper *value) { return(value); }
public static void ConcurrentReader(MixedKeyWrapper *key, MixedInputWrapper *input, MixedValueWrapper *value, MixedOutputWrapper *dst) { MixedValueWrapper.AcquireReadLock(value); userFunctions.Reader( UserType.Convert(key), UserType.Convert(input), UserType.Convert(value), ref UserType.Convert(dst)); MixedValueWrapper.ReleaseReadLock(value); }