/// <summary> /// Gets the blob value by it's signature/index and creates a binary reader using a generic instance. /// </summary> /// <param name="index">The index or signature to get the blob value from.</param> /// <param name="instance">The generic instance that is being used as a context.</param> /// <returns></returns> public BlobSignatureReader GetBlobReader(uint index, IGenericContext instance) { BlobSignatureReader reader = GetBlobReader(index); reader.GenericContext = instance; return(reader); }
public bool TryGetBlobReader(uint index, IGenericContext instance, out BlobSignatureReader reader) { if (TryGetBlobReader(index, out reader)) { reader.GenericContext = instance; return(true); } return(false); }
/// <summary> /// Gets the blob value by it's signature/index and creates a binary reader. /// </summary> /// <param name="index">The index or signature to get the blob value from.</param> /// <returns></returns> public BlobSignatureReader GetBlobReader(uint index) { byte[] bytes = GetBlob(index); MemoryStream newStream = new MemoryStream(bytes); newStream.Seek(0, SeekOrigin.Begin); BlobSignatureReader reader = new BlobSignatureReader(newStream, _netheader); return(reader); }
public bool TryGetBlobReader(uint index, out BlobSignatureReader reader) { reader = null; if (index == 0 || index > StreamSize) { return(false); } reader = GetBlobReader(index); return(true); }
/// <summary> /// Gets the blob value by it's signature/index and creates a binary reader. /// </summary> /// <param name="index">The index or signature to get the blob value from.</param> /// <returns></returns> public BlobSignatureReader GetBlobReader(uint index) { byte[] bytes = GetBlob(index); MemoryStream newStream = new MemoryStream(bytes); newStream.Seek(0, SeekOrigin.Begin); BlobSignatureReader reader = new BlobSignatureReader(newStream, _netheader); return reader; }
public bool TryGetBlobReader(uint index, IGenericContext instance, out BlobSignatureReader reader) { if (TryGetBlobReader(index, out reader)) { reader.GenericContext = instance; return true; } return false; }
public bool TryGetBlobReader(uint index, out BlobSignatureReader reader) { reader = null; if (index == 0 || index > StreamSize) return false; reader = GetBlobReader(index); return true; }