Lines Matching full:size
134 int* size,
145 // Get the size of the file and rewind it.
146 *size = ftell(file);
149 char* result = NewArray<char>(*size + extra_space);
150 for (int i = 0; i < *size;) {
151 int read = static_cast<int>(fread(&result[i], 1, *size - i, file));
164 byte* ReadBytes(const char* filename, int* size, bool verbose) {
165 char* chars = ReadCharsFromFile(filename, size, 0, verbose);
173 int size;
174 char* result = ReadCharsFromFile(filename, &size, 1, verbose);
179 result[size] = '\0';
181 return Vector<const char>(result, size);
185 int WriteCharsToFile(const char* str, int size, FILE* f) {
187 while (total < size) {
188 int write = static_cast<int>(fwrite(str, 1, size - total, f));
201 int size,
210 int written = WriteCharsToFile(str, size, f);
218 int size,
221 return WriteChars(filename, str, size, verbose);
225 StringBuilder::StringBuilder(int size) {
226 buffer_ = Vector<char>::New(size);