MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / ParseBytes

Function ParseBytes

pkg/pe/parser.go:183–188  ·  view source on GitHub ↗

ParseBytes tries to parse the PE from the given byte slice and parser options.

(data []byte, opts ...Option)

Source from the content-addressed store, hash-verified

181
182// ParseBytes tries to parse the PE from the given byte slice and parser options.
183func 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

Callers 1

ParseMemFunction · 0.85

Calls 2

ZeroedFunction · 0.92
parseFunction · 0.85

Tested by

no test coverage detected