ParseBytes tries to parse the PE from the given byte slice and parser options.
(data []byte, opts ...Option)
| 181 | |
| 182 | // ParseBytes tries to parse the PE from the given byte slice and parser options. |
| 183 | func ParseBytes(data []byte, opts ...Option) (*PE, error) { |
| 184 | if len(data) == 0 || va.Zeroed(data) { |
| 185 | return nil, ErrEmptyVArea |
| 186 | } |
| 187 | return parse("", data, opts...) |
| 188 | } |
| 189 | |
| 190 | // ParseMem parses the in-memory layout of the PE header for the |
| 191 | // specified process and base address. If change protection parameter |