Example #1
0
        internal static CacheFileCookie ReadCookie(FileStream fs, long offset)
        {
            LinkedList <CacheFileCookie> linkedList = CacheFileCookieSerializer.ReadCookieList(fs, offset, 1);

            if (linkedList.First == null)
            {
                return(null);
            }
            return(linkedList.First.Value);
        }
Example #2
0
        internal static CacheFileCookie ReadLastCookie(FileStream fs)
        {
            LinkedList <CacheFileCookie> linkedList = CacheFileCookieSerializer.ReadCookieList(fs, -1L, -1);

            if (linkedList.Last == null)
            {
                return(null);
            }
            return(linkedList.Last.Value);
        }
Example #3
0
 internal static LinkedList <CacheFileCookie> ReadCookieList(FileStream fs)
 {
     return(CacheFileCookieSerializer.ReadCookieList(fs, -1L, -1));
 }