Searched refs:valid_len (Results 1 – 2 of 2) sorted by relevance
51 gsize valid_len; /* The part of data that has been written to */ member209 priv->valid_len = 0; in g_memory_output_stream_new()276 return ostream->priv->valid_len; in g_memory_output_stream_get_data_size()351 if (priv->len < priv->valid_len) in array_resize()352 priv->valid_len = priv->len; in array_resize()405 if (priv->pos > priv->valid_len) in g_memory_output_stream_write()406 priv->valid_len = priv->pos; in g_memory_output_stream_write()
67 void ClearInvalidData(char* buffer, int offset, int valid_len) { in ClearInvalidData() argument69 DCHECK(valid_len >= 0); in ClearInvalidData()70 DCHECK(disk_cache::kMaxBlockSize >= offset + valid_len); in ClearInvalidData()73 int end = disk_cache::kMaxBlockSize - offset - valid_len; in ClearInvalidData()75 memset(buffer + offset + valid_len, 0, end); in ClearInvalidData()