Searched refs:chunk_size (Results 1 – 2 of 2) sorted by relevance
99 const int chunk_size = 128; in memlog_write() local104 for (i = 0; i < len / chunk_size; i++) { in memlog_write()105 __memlog_write(log, &str[i * chunk_size], chunk_size); in memlog_write()107 rem = len - i * chunk_size; in memlog_write()109 __memlog_write(log, &str[i * chunk_size], rem); in memlog_write()
287 let chunk_size = 2; in new_from_string() localVariable288 if (string_to_split.len() % chunk_size) != 0 { in new_from_string()293 for i in 0..(string_to_split.len() / chunk_size) { in new_from_string()294 (chunk, remainder) = remainder.split_at(chunk_size); in new_from_string()