func (rs *ResourceSet) dirSize() int {
	sz := sizeOfDirTable + len(rs.Types)*sizeOfDirEntry
	for _, te := range rs.Types {
		sz += te.size()
		for _, re := range te.Resources {
			sz += re.size() + len(re.Data)*sizeOfDataEntry
		}
	}
	return sz
}
// dirSize returns the size of the rsrc section's directory.
dirSize returns the size of the rsrc section's directory.
// dirSize returns the size of the rsrc section ' s directory .
func (rs *ResourceSet) dirSize() int {
	sz := sizeOfDirTable + len(rs.Types)*sizeOfDirEntry
	for _, te := range rs.Types {
		sz += te.size()
		for _, re := range te.Resources {
			sz += re.size() + len(re.Data)*sizeOfDataEntry
		}
	}
	return sz
}
func ( rs * ResourceSet ) dirSize ( ) int { sz := sizeOfDirTable + len ( rs . Types ) * sizeOfDirEntry for _ , te := range rs . Types { sz += te . size ( ) for _ , re := range te . Resources { sz += re . size ( ) + len ( re . Data ) * sizeOfDataEntry } } return sz }
dirSize returns the size of the rsrc section's directory.
dirSize returns the size of the rsrc section ' s directory .