예제 #1
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
        /// <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);
        }
예제 #2
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
 public bool TryGetBlobReader(uint index, IGenericContext instance, out BlobSignatureReader reader)
 {
     if (TryGetBlobReader(index, out reader))
     {
         reader.GenericContext = instance;
         return(true);
     }
     return(false);
 }
예제 #3
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
        /// <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);
        }
예제 #4
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
        public bool TryGetBlobReader(uint index, out BlobSignatureReader reader)
        {
            reader = null;
            if (index == 0 || index > StreamSize)
            {
                return(false);
            }

            reader = GetBlobReader(index);
            return(true);
        }
예제 #5
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
 /// <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;
 }
예제 #6
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
 public bool TryGetBlobReader(uint index, IGenericContext instance, out BlobSignatureReader reader)
 {
     if (TryGetBlobReader(index, out reader))
     {
         reader.GenericContext = instance;
         return true;
     }
     return false;
 }
예제 #7
0
파일: BlobHeap.cs 프로젝트: Rex-Hays/GNIDA2
        public bool TryGetBlobReader(uint index, out BlobSignatureReader reader)
        {
            reader = null;
            if (index == 0 || index > StreamSize)
                return false;

            reader = GetBlobReader(index);
            return true;
        }