private void TypeStartBlob(EAutoPreprocessCode processCode, ECacheState cacheState) { if (expectingIndex >= 0) { throw new Exception("Could not parse type, expecting FieldValue but got Blob"); } depth++; }
private void ReadBlobHeader() { cacheState = (ECacheState)source.ReadByte(); processCode = (EAutoPreprocessCode)source.ReadByte(); bytesAvailable = source.ReadInt32(); spareAvailable = source.ReadInt32(); if (!BlobUtil.IsValidCacheState(cacheState) || !BlobUtil.IsValidProcess(processCode)) { throw new InvalidBlobException("Invalid blob header"); } TakeBytes(BlobHeaderLength); UnpackBlobIfNeeded(); }
public static bool IsValidCacheState(ECacheState cachestate) { return (cachestate >= ECacheState.eCacheEmpty && cachestate <= ECacheState.eCachePtrIsCopyOnWritePlaintextVersion); }
private void XmlStartBlob(EAutoPreprocessCode processCode, ECacheState cacheState) { xmlOut.WriteStartElement("blob"); }
public static bool IsValidCacheState(ECacheState cachestate) { return(cachestate >= ECacheState.eCacheEmpty && cachestate <= ECacheState.eCachePtrIsCopyOnWritePlaintextVersion); }
public volatile ECacheState State; //{ get; private set; } /// <summary> /// Constructor /// </summary> public DataSourceCache() { State = ECacheState.Busy; }