Home | History | Annotate | Download | only in test

Lines Matching refs:buffer

54   // Allocate a buffer for the reads and the writes.
55 char* buffer = reinterpret_cast<char*>(VirtualAlloc(NULL,
67 ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL);
72 // Zero out the remaining part of the buffer.
73 // WriteFile will fail if we provide a buffer size that isn't a
74 // sector multiple, so we'll have to write the entire buffer with
76 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read);
85 if (!WriteFile(file_handle, buffer, kOneMB, &bytes_written, NULL) ||
87 BOOL freed = VirtualFree(buffer, 0, MEM_RELEASE);
100 BOOL freed = VirtualFree(buffer, 0, MEM_RELEASE);