Lines Matching refs:desiredBytes

429     size_t desiredBytes = desiredFrames * handle->bytesPerFrame;  in sf_readf_short()  local
434 temp = malloc(desiredBytes); in sf_readf_short()
435 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_short()
437 actualBytes = fread(ptr, sizeof(char), desiredBytes, handle->stream); in sf_readf_short()
478 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_float() local
483 temp = malloc(desiredBytes); in sf_readf_float()
484 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_float()
486 actualBytes = fread(ptr, sizeof(char), desiredBytes, handle->stream); in sf_readf_float()
529 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_readf_int() local
534 temp = malloc(desiredBytes); in sf_readf_int()
535 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_int()
537 actualBytes = fread(ptr, sizeof(char), desiredBytes, handle->stream); in sf_readf_int()
574 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_short() local
578 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
579 memcpy_to_u8_from_i16(handle->temp, ptr, desiredBytes); in sf_writef_short()
580 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
585 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
587 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
588 memcpy(handle->temp, ptr, desiredBytes); in sf_writef_short()
590 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
594 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
597 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
611 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_float() local
615 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
618 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_float()
621 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
636 size_t desiredBytes = desiredFrames * handle->bytesPerFrame; in sf_writef_int() local
640 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_int()