Ejemplo n.º 1
0
func (b Bitmaps) Unpack(res *resource.Container, col *resource.PointerCollection) error {
	for i := 0; i < cap(b); i++ {
		if err := col.Detour(res, i, func() error {
			b[i] = new(Bitmap)
			return b[i].Unpack(res)
		}); err != nil {
			return err
		}
	}
	return nil
}