Searched refs:ck (Results 1 – 1 of 1) sorted by relevance
49 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_read() local51 if (static_cast<size_t>(n) > ck->size - ck->offset) n = ck->size - ck->offset; in fmemopen_read()54 memmove(buf, ck->buf + ck->offset, n); in fmemopen_read()55 ck->offset += n; in fmemopen_read()61 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_write() local68 if (ck->append) ck->offset = ck->size; in fmemopen_write()71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { in fmemopen_write()72 n = ck->capacity - ck->offset - space_for_null; in fmemopen_write()81 memmove(ck->buf + ck->offset, buf, n); in fmemopen_write()82 ck->offset += n; in fmemopen_write()[all …]