VirtualBox

Ignore:
Timestamp:
Apr 18, 2014 9:57:44 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93383
Message:

Storage/FilterCrypt: Remove hardcoded data unit size of 512 bytes and introduce interface to query the size from the generic layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs-internal.h

    r50988 r51102  
    407407                                                size_t cbCheck, bool fAdvance));
    408408
     409    /**
     410     * Returns the data unit size, i.e. the smallest size for a transfer.
     411     * (similar to the sector size of disks).
     412     *
     413     * @returns The data unit size.
     414     * @param   pvUser         The opaque user data passed on container creation.
     415     * @param   pIoCtx         The I/O context.
     416     */
     417    DECLR3CALLBACKMEMBER(size_t, pfnIoCtxGetDataUnitSize, (void *pvUser, PVDIOCTX pIoCtx));
     418
    409419} VDINTERFACEIOINT, *PVDINTERFACEIOINT;
    410420
     
    585595}
    586596
     597DECLINLINE(size_t) vdIfIoIntIoCtxGetDataUnitSize(PVDINTERFACEIOINT pIfIoInt, PVDIOCTX pIoCtx)
     598{
     599    return pIfIoInt->pfnIoCtxGetDataUnitSize(pIfIoInt->Core.pvUser, pIoCtx);
     600}
    587601
    588602/**
Note: See TracChangeset for help on using the changeset viewer.

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