Skip to content

Commit

Permalink
program: add public Sync method
Browse files Browse the repository at this point in the history
  • Loading branch information
dcentelles committed Jan 9, 2025
1 parent 92eaab9 commit 7b5f1d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions program/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func align(val, to uint32) uint32 {
return (val + (to - 1)) & ^(to - 1)
}

func Sync(ctx context.Context, rw io.ReadWriter) error {
return sync(ctx, rw, nil)
}

func Program(rw io.ReadWriter, img *Image, progress chan<- ProgressReport) error {
return ProgramWithCtx(context.Background(), rw, img, progress)
}
Expand Down

0 comments on commit 7b5f1d4

Please sign in to comment.