/alps/fastwriter

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to fastwriter.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-13 14:45:59 UTC
  • Revision ID: csa@dside.dyndns.org-20111213144559-uswgybgiqrg865t7
Just push instead push_chunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
}
233
233
 
234
234
 
235
 
int fastwriter_push_chunk(fastwriter_t *ctx, size_t size, const void *data) {
 
235
int fastwriter_push(fastwriter_t *ctx, size_t size, const void *data) {
236
236
    size_t part1, end;
237
237
    size_t free = fastwriter_compute_free_space(ctx);
238
238
 
307
307
 
308
308
int fastwriter_push_data(fastwriter_t *ctx, size_t size, const void *buf) {
309
309
    int err;
310
 
    err = fastwriter_push_chunk(ctx, size, buf);
 
310
    err = fastwriter_push(ctx, size, buf);
311
311
    if (err) return err;
312
312
    
313
313
    err = fastwriter_commit(ctx);