Lines Matching refs:buffer
39 dumpRawData(const char *buffer, size_t size)
51 printf("%02x ", (uint8)buffer[dumpPosition + i]);
61 putCharOrDot(buffer[dumpPosition]);
75 static char buffer[32];
88 sprintf(buffer, "'%c%c%c%c'", value[0], value[1], value[2],
91 sprintf(buffer, "0x%08" B_PRIx32, type);
93 return buffer;
158 char* buffer = (char*)malloc(size);
159 if (!buffer) {
160 fprintf(stderr, "Could not allocate read buffer!\n");
165 ssize_t bytesRead = fs_read_attr(fd, attribute, info.type, 0, buffer, size);
167 free(buffer);
175 free(buffer);
185 written = write(STDOUT_FILENO, buffer, bytesRead);
200 bytesRead = fs_read_attr(fd, attribute, info.type, pos, buffer,
215 free(buffer);
227 printf("%" B_PRId8 "\n", *((int8*)buffer));
230 printf("%" B_PRIu8 "\n", *((uint8*)buffer));
233 printf("%" B_PRId16 "\n", *((int16*)buffer));
236 printf("%" B_PRIu16 "\n", *((uint16*)buffer));
239 printf("%" B_PRId32 "\n", *((int32*)buffer));
242 printf("%" B_PRIu32 "\n", *((uint32*)buffer));
245 printf("%" B_PRId64 "\n", *((int64*)buffer));
248 printf("%" B_PRIu64 "\n", *((uint64*)buffer));
251 printf("%f\n", *((float*)buffer));
254 printf("%f\n", *((double*)buffer));
257 printf("%d\n", *((unsigned char*)buffer));
264 printf("%s\n", buffer);
270 if (!cut && message.Unflatten(buffer) == B_OK) {
279 dumpRawData(buffer, size);
283 free(buffer);