libswarm-ng

C implementation of BMT hasher, Swarmhash and Single Owner Chunk for swarm
git clone git://git.defalsify.org/libswarm-ng.git
Log | Files | Refs | Submodules | README

bmt_malloc.h (282B)


      1 #ifndef _LIBSWARM_BMT_MALLOC
      2 #define _LIBSWARM_BMT_MALLOC
      3 
      4 #include "swarm.h"
      5 
      6 typedef struct bmt {
      7 	unsigned char *buf;
      8 	unsigned char *w_ptr;
      9 	unsigned char *r_ptr;
     10 	unsigned char *target;
     11 } bmt_t;	
     12 
     13 #include "bmt_interface.h"
     14 void bmt_free(bmt_t *bctx);
     15 
     16 #endif // _LIBSWARM_BMT