Lines Matching refs:p
7 void DynBuf_Construct(CDynBuf *p) in DynBuf_Construct() argument
9 p->data = 0; in DynBuf_Construct()
10 p->size = 0; in DynBuf_Construct()
11 p->pos = 0; in DynBuf_Construct()
14 void DynBuf_SeekToBeg(CDynBuf *p) in DynBuf_SeekToBeg() argument
16 p->pos = 0; in DynBuf_SeekToBeg()
19 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc) in DynBuf_Write() argument
21 if (size > p->size - p->pos) in DynBuf_Write()
23 size_t newSize = p->pos + size; in DynBuf_Write()
29 p->size = newSize; in DynBuf_Write()
30 memcpy(data, p->data, p->pos); in DynBuf_Write()
31 alloc->Free(alloc, p->data); in DynBuf_Write()
32 p->data = data; in DynBuf_Write()
34 memcpy(p->data + p->pos, buf, size); in DynBuf_Write()
35 p->pos += size; in DynBuf_Write()
39 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc) in DynBuf_Free() argument
41 alloc->Free(alloc, p->data); in DynBuf_Free()
42 p->data = 0; in DynBuf_Free()
43 p->size = 0; in DynBuf_Free()
44 p->pos = 0; in DynBuf_Free()