Changeset 4442 in vbox
- Timestamp:
- Aug 30, 2007 11:29:08 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r4071 r4442 522 522 * @param cbToRead Number of bytes to read. 523 523 */ 524 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsignedcbToRead);524 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, size_t cbToRead); 525 525 526 526 /** … … 533 533 * @param cbToWrite Number of bytes to write. 534 534 */ 535 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsignedcbToWrite);535 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, size_t cbToWrite); 536 536 537 537 -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r4422 r4442 2780 2780 if (pData->fAm79C973 && (pData->aBCR[BCR_MIIADDR] >> 5 & 0x1f) == 0) 2781 2781 { 2782 size_t miiaddr = pData->aBCR[BCR_MIIADDR] & 0x1f;2782 uint32_t miiaddr = pData->aBCR[BCR_MIIADDR] & 0x1f; 2783 2783 val = pcnetMIIReadU16(pData, miiaddr); 2784 2784 } -
trunk/src/VBox/Devices/Storage/VDICore.cpp
r4071 r4442 60 60 static void vdiCloseImage(PVDIIMAGEDESC pImage); 61 61 static int vdiReadInBlock(PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offRead, 62 unsignedcbToRead, void *pvBuf);62 size_t cbToRead, void *pvBuf); 63 63 static int vdiFillBlockByZeroes(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock); 64 64 static int vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock, 65 unsigned offWrite, unsignedcbToWrite, const void *pvBuf);65 unsigned offWrite, size_t cbToWrite, const void *pvBuf); 66 66 static int vdiCopyBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock); 67 67 static int vdiMergeImages(PVDIIMAGEDESC pImageFrom, PVDIIMAGEDESC pImageTo, bool fParentToChild, … … 912 912 */ 913 913 static int vdiReadInBlock(PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offRead, 914 unsignedcbToRead, void *pvBuf)914 size_t cbToRead, void *pvBuf) 915 915 { 916 916 if (IS_VDI_IMAGE_BLOCK_ALLOCATED(pImage->paBlocks[uBlock])) … … 942 942 * @param cbToRead Number of bytes to read. 943 943 */ 944 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsignedcbToRead)944 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, size_t cbToRead) 945 945 { 946 946 /* sanity check */ … … 970 970 for (;;) 971 971 { 972 unsignedto_read;972 size_t to_read; 973 973 if ((offRead + cbToRead) <= cbBlock) 974 974 to_read = cbToRead; … … 1062 1062 * note: uBlock must be valid, written data must not overlap block bounds. 1063 1063 */ 1064 static int vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offWrite, unsignedcbToWrite, const void *pvBuf)1064 static int vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offWrite, size_t cbToWrite, const void *pvBuf) 1065 1065 { 1066 1066 int rc; … … 1202 1202 * @param cbToWrite Number of bytes to write. 1203 1203 */ 1204 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsignedcbToWrite)1204 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, size_t cbToWrite) 1205 1205 { 1206 1206 /* sanity check */
Note:
See TracChangeset
for help on using the changeset viewer.