GetCacheEntry() private method

private GetCacheEntry ( ConfigId id, int numKey, char key, byte &data ) : bool
id ConfigId
numKey int
key char
data byte
return bool
        internal static bool GetCacheEntry(ConfigId id, int numKey, byte[] key, out byte[] data)
        {
            byte[] array      = null;
            bool   cacheEntry = Config.GetCacheEntry(id, numKey, key, key.Length, JitHelpers.GetObjectHandleOnStack <byte[]>(ref array));

            data = array;
            return(cacheEntry);
        }
示例#2
0
        internal static bool GetCacheEntry(ConfigId id, int numKey, byte[] key, out byte[] data)
        {
            byte[] o       = (byte[])null;
            int    num1    = (int)id;
            int    numKey1 = numKey;

            byte[] key1   = key;
            int    length = key1.Length;
            ObjectHandleOnStack objectHandleOnStack = JitHelpers.GetObjectHandleOnStack <byte[]>(ref o);
            int num2 = Config.GetCacheEntry((ConfigId)num1, numKey1, key1, length, objectHandleOnStack) ? 1 : 0;

            data = o;
            return(num2 != 0);
        }