Lines Matching refs:len
151 size_t len) in add_string() argument
165 len = (len + 1) * sizeof(Stringpool_char); in add_string()
169 if (len > buffer_size) in add_string()
171 alc = sizeof(Stringdata) + len; in add_string()
179 if (len > psd->alc - psd->len) in add_string()
183 char* ret = psd->data + psd->len; in add_string()
184 memcpy(ret, s, len - sizeof(Stringpool_char)); in add_string()
185 memset(ret + len - sizeof(Stringpool_char), 0, in add_string()
188 psd->len += len; in add_string()
196 memcpy(psd->data, s, len - sizeof(Stringpool_char)); in add_string()
197 memset(psd->data + len - sizeof(Stringpool_char), 0, in add_string()
199 psd->len = len; in add_string()
485 const int len = (p->first.length + 1) * sizeof(Stringpool_char); in write_to_buffer() local
487 gold_assert(static_cast<section_size_type>(offset) + len in write_to_buffer()
489 memcpy(buffer + offset, p->first.string, len); in write_to_buffer()