Buckets:
| /* | |
| * Copyright (c) 2007-2011, Novell Inc. | |
| * | |
| * This program is licensed under the BSD license, read LICENSE.BSD | |
| * for further information | |
| */ | |
| /* | |
| * bitmap.h | |
| * | |
| */ | |
| extern "C" { | |
| typedef struct s_Map { | |
| unsigned char *map; | |
| int size; | |
| } Map; | |
| /* set all bits */ | |
| /* set bit */ | |
| /* clear bit */ | |
| /* test bit */ | |
| /* clear some bits at a position */ | |
| extern void map_init(Map *m, int n); | |
| extern void map_init_clone(Map *target, const Map *source); | |
| extern void map_grow(Map *m, int n); | |
| extern void map_free(Map *m); | |
| extern void map_and(Map *t, const Map *s); | |
| extern void map_or(Map *t, const Map *s); | |
| extern void map_subtract(Map *t, const Map *s); | |
| extern void map_invertall(Map *m); | |
| static inline void map_empty(Map *m) | |
| { | |
| MAPZERO(m); | |
| } | |
| static inline void map_set(Map *m, int n) | |
| { | |
| MAPSET(m, n); | |
| } | |
| static inline void map_setall(Map *m) | |
| { | |
| MAPSETALL(m); | |
| } | |
| static inline void map_clr(Map *m, int n) | |
| { | |
| MAPCLR(m, n); | |
| } | |
| static inline int map_tst(Map *m, int n) | |
| { | |
| return MAPTST(m, n); | |
| } | |
| static inline void map_clr_at(Map *m, int n) | |
| { | |
| MAPCLR_AT(m, n); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.56 kB
- Xet hash:
- 18245e8f4a60ae48f7c3866011134c50b9f26ad53dd595c8f85966419c0af050
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.