TokenTypes IMetadataProvider.Read(TokenTypes token, out byte[] result) { if (TokenTypes.Blob == (TokenTypes.TableMask & token)) { BlobHeap bheap = (BlobHeap)_streams[(int)HeapType.Blob]; result = bheap.ReadBlob(ref token); } else { throw new ArgumentException(@"Invalid token for a blob.", @"token"); } return(token); }
/// <summary> /// Reads a blob heap entry. /// </summary> /// <param name="token">The token of the blob heap entry to read.</param> /// <returns></returns> byte[] IMetadataProvider.ReadBlob(HeapIndexToken token) { BlobHeap bheap = (BlobHeap)_streams[(int)HeapType.Blob]; return(bheap.ReadBlob(token)); }