Lines Matching refs:ss
140 qemud_sink_reset( QemudSink* ss, int size, uint8_t* buffer )
142 ss->used = 0;
143 ss->size = size;
144 ss->buff = buffer;
154 qemud_sink_fill( QemudSink* ss, const uint8_t* *pmsg, int *plen)
156 int avail = ss->size - ss->used;
164 memcpy(ss->buff + ss->used, *pmsg, avail);
167 ss->used += avail;
169 return (ss->used == ss->size);
176 qemud_sink_needed( QemudSink* ss )
178 return ss->size - ss->used;