func (re *ResourceEntry) write(w io.Writer, s *state) error {
	if err := writeDirectoryTable(w, 0, len(re.Data)); err != nil {
		return err
	}
	for _, lcid := range re.OrderedKeys {
		s.relocAddr = append(s.relocAddr, s.offset)
		if err := writeDirectoryEntry(w, int(lcid), s.offset, false, false); err != nil {
			return err
		}
		s.offset += sizeOfDataEntry
	}
	return nil
}
// write writes the entry's directory table
write writes the entry's directory table
// write writes the entry ' s directory table
func (re *ResourceEntry) write(w io.Writer, s *state) error {
	if err := writeDirectoryTable(w, 0, len(re.Data)); err != nil {
		return err
	}
	for _, lcid := range re.OrderedKeys {
		s.relocAddr = append(s.relocAddr, s.offset)
		if err := writeDirectoryEntry(w, int(lcid), s.offset, false, false); err != nil {
			return err
		}
		s.offset += sizeOfDataEntry
	}
	return nil
}
func ( re * ResourceEntry ) write ( w io . Writer , s * state ) error { if err := writeDirectoryTable ( w , 0 , len ( re . Data ) ) ; err != nil { return err } for _ , lcid := range re . OrderedKeys { s . relocAddr = append ( s . relocAddr , s . offset ) if err := writeDirectoryEntry ( w , int ( lcid ) , s . offset , false , false ) ; err != nil { return err } s . offset += sizeOfDataEntry } return nil }
write writes the entry's directory table
write writes the entry ' s directory table