AsmResolver.Net.ImageNetDirectory.GetResourceData C# (CSharp) Метод

GetResourceData() публичный Метод

Gets the managed resource data at the given offset.
public GetResourceData ( uint offset ) : byte[]
offset uint The offset of the managed resource to get.
Результат byte[]
        public byte[] GetResourceData(uint offset)
        {
            if (_readingContext == null || ResourcesDirectory.VirtualAddress == 0)
                return null;

            var context = _readingContext.CreateSubContext(
                Assembly.RvaToFileOffset(ResourcesDirectory.VirtualAddress) + offset,
                (int)ResourcesDirectory.Size);

            if (context == null)
                return null;

            var length = context.Reader.ReadInt32();
            return context.Reader.ReadBytes(length);
        }