Lines Matching defs:mine
54 struct write_memory_data *mine;
56 mine = (struct write_memory_data *)calloc(1, sizeof(*mine));
57 if (mine == NULL) {
61 mine->buff = buff;
62 mine->size = buffSize;
63 mine->client_size = used;
64 return (archive_write_open2(a, mine,
71 struct write_memory_data *mine;
72 mine = client_data;
73 mine->used = 0;
74 if (mine->client_size != NULL)
75 *mine->client_size = mine->used;
84 * Note that we update mine->client_size on every write.
91 struct write_memory_data *mine;
92 mine = client_data;
94 if (mine->used + length > mine->size) {
98 memcpy(mine->buff + mine->used, buff, length);
99 mine->used += length;
100 if (mine->client_size != NULL)
101 *mine->client_size = mine->used;
108 struct write_memory_data *mine;
110 mine = client_data;
111 if (mine == NULL)
113 free(mine);