func (ewf_file *EWF_file) ParseHeader(cur_offset *uint64) { defer parseutil.TimeTrack(time.Now(), "Parsing Segment Header") buf := ewf_file.ReadAt(EWF_Header_s, *cur_offset) //producer *cur_offset += EWF_Header_s ewf_header := new(EWF_Header) //ewf_header acts as a pointer ewf_header.Parse(buf) //consume sig := parseutil.Stringify(ewf_header.Signature[:]) if !strings.Contains(sig, "EVF") { os.Exit(0) } }
func (section *Section) findType() { section.Type = parseutil.Stringify(section.SHeader.Header[:]) }