VirtualBox

Changeset 4442 in vbox


Ignore:
Timestamp:
Aug 30, 2007 11:29:08 AM (17 years ago)
Author:
vboxsync
Message:

size_t

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxHDD.h

    r4071 r4442  
    522522 * @param   cbToRead        Number of bytes to read.
    523523 */
    524 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead);
     524VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, size_t cbToRead);
    525525
    526526/**
     
    533533 * @param   cbToWrite       Number of bytes to write.
    534534 */
    535 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite);
     535VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, size_t cbToWrite);
    536536
    537537
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r4422 r4442  
    27802780            if (pData->fAm79C973 && (pData->aBCR[BCR_MIIADDR] >> 5 & 0x1f) == 0)
    27812781            {
    2782                 size_t miiaddr = pData->aBCR[BCR_MIIADDR] & 0x1f;
     2782                uint32_t miiaddr = pData->aBCR[BCR_MIIADDR] & 0x1f;
    27832783                val = pcnetMIIReadU16(pData, miiaddr);
    27842784            }
  • trunk/src/VBox/Devices/Storage/VDICore.cpp

    r4071 r4442  
    6060static void vdiCloseImage(PVDIIMAGEDESC pImage);
    6161static int  vdiReadInBlock(PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offRead,
    62                            unsigned cbToRead, void *pvBuf);
     62                           size_t cbToRead, void *pvBuf);
    6363static int  vdiFillBlockByZeroes(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock);
    6464static int  vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock,
    65                             unsigned offWrite, unsigned cbToWrite, const void *pvBuf);
     65                            unsigned offWrite, size_t cbToWrite, const void *pvBuf);
    6666static int  vdiCopyBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock);
    6767static int  vdiMergeImages(PVDIIMAGEDESC pImageFrom, PVDIIMAGEDESC pImageTo, bool fParentToChild,
     
    912912 */
    913913static int vdiReadInBlock(PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offRead,
    914                           unsigned cbToRead, void *pvBuf)
     914                          size_t cbToRead, void *pvBuf)
    915915{
    916916    if (IS_VDI_IMAGE_BLOCK_ALLOCATED(pImage->paBlocks[uBlock]))
     
    942942 * @param   cbToRead        Number of bytes to read.
    943943 */
    944 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead)
     944VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, size_t cbToRead)
    945945{
    946946    /* sanity check */
     
    970970    for (;;)
    971971    {
    972         unsigned to_read;
     972        size_t to_read;
    973973        if ((offRead + cbToRead) <= cbBlock)
    974974            to_read = cbToRead;
     
    10621062 * note: uBlock must be valid, written data must not overlap block bounds.
    10631063 */
    1064 static int vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offWrite, unsigned cbToWrite, const void *pvBuf)
     1064static int vdiWriteInBlock(PVDIDISK pDisk, PVDIIMAGEDESC pImage, unsigned uBlock, unsigned offWrite, size_t cbToWrite, const void *pvBuf)
    10651065{
    10661066    int rc;
     
    12021202 * @param   cbToWrite       Number of bytes to write.
    12031203 */
    1204 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite)
     1204VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, size_t cbToWrite)
    12051205{
    12061206    /* sanity check */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette