func()

in manifest/mfg_manifest.go [153:165]


func (m *MfgManifest) FindWithinFlashAreaDevOff(device int, offset int) *flash.FlashArea {
	for i, _ := range m.FlashAreas {
		fa := &m.FlashAreas[i]
		if fa.Device == device {
			end := fa.Offset + fa.Size
			if offset >= fa.Offset && offset < end {
				return fa
			}
		}
	}

	return nil
}