Lines Matching refs:buffer

587 	char buffer[1024];  in fcopy()  local
593 while ( 0 != (nBytes = fread( buffer, 1, sizeof(buffer), fpin )) ) in fcopy()
595 nBytesWritten += fwrite( buffer, 1, nBytes, fpout ); in fcopy()
1566 static void normalize_pe_image(sal_uInt8* buffer, size_t nBufferSize) in normalize_pe_image() argument
1575 if (buffer[0] == 'M' && buffer[1] == 'Z') in normalize_pe_image()
1577 unsigned long PEHeaderOffset = (long)buffer[OFFSET_PE_OFFSET]; in normalize_pe_image()
1580 if ( buffer[PEHeaderOffset] == 'P' && in normalize_pe_image()
1581 buffer[PEHeaderOffset+1] == 'E' && in normalize_pe_image()
1582 buffer[PEHeaderOffset+2] == 0 && in normalize_pe_image()
1583 buffer[PEHeaderOffset+3] == 0 ) in normalize_pe_image()
1591 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP] = 0; in normalize_pe_image()
1592 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0; in normalize_pe_image()
1593 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+2] = 0; in normalize_pe_image()
1594 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+3] = 0; in normalize_pe_image()
1600 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM] = 0; in normalize_pe_image()
1601 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+1] = 0; in normalize_pe_image()
1602 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+2] = 0; in normalize_pe_image()
1603 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+3] = 0; in normalize_pe_image()
1668 sal_uInt8 buffer[4096];
1672 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) )
1674 error = rtl_digest_updateMD5( digest, buffer, nBytesRead );
2447 char buffer[2048]; in SendHTTPRequest() local
2450 sprintf( buffer, in SendHTTPRequest()
2460 sprintf( buffer, in SendHTTPRequest()
2468 if ( SOCKET_ERROR != send( s, buffer, strlen(buffer), 0 ) ) in SendHTTPRequest()
2474 nBytes = fread( buffer, 1, sizeof(buffer), fp ); in SendHTTPRequest()
2477 success = SOCKET_ERROR != send( s, buffer, nBytes, 0 ); in SendHTTPRequest()
2482 memset( buffer, 0, sizeof(buffer) ); in SendHTTPRequest()
2483 success = SOCKET_ERROR != recv( s, buffer, sizeof(buffer), 0 ); in SendHTTPRequest()
2486 char szHTTPSignature[sizeof(buffer)] = ""; in SendHTTPRequest()
2489 sscanf( buffer, "%s %d ", szHTTPSignature, &uHTTPReturnCode ); in SendHTTPRequest()