VirtualBox

Changeset 74224 in vbox for trunk/include


Ignore:
Timestamp:
Sep 12, 2018 2:44:27 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/http,rest: Clearified the content offset parameter in the callbacks.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restclient.h

    r74181 r74224  
    100100     * @param   a_offContent    The byte offset corresponding to the start of @a a_pvDst.
    101101     * @param   a_pcbActual     Where to return the number of bytes actually produced.
     102     *
    102103     * @remarks Use getCallbackData to get the user data.
     104     *
     105     * @note    The @a a_offContent parameter does not imply random access or anthing
     106     *          like that, it is just a convenience provided by the caller.  The value
     107     *          is the sum of the previously returned @a *pcbActual values.
    103108     */
    104109    typedef DECLCALLBACK(int) FNPRODUCER(RTCRestBinaryParameter *a_pThis, void *a_pvDst, size_t a_cbDst,
     
    228233     * @param   a_offContent    The byte offset corresponding to the start of @a a_pvSrc.
    229234     * @param   a_cbContent     The content length field value, UINT64_MAX if not available.
     235     *
    230236     * @remarks Use getCallbackData to get the user data.
     237     *
     238     * @note    The @a a_offContent parameter does not imply random access or anthing
     239     *          like that, it is just a convenience provided by the caller.  The value
     240     *          is the sum of the previous @a a_cbSrc values.
    231241     */
    232242    typedef DECLCALLBACK(int) FNCONSUMER(RTCRestBinaryResponse *a_pThis, const void *a_pvSrc, size_t a_cbSrc,
  • trunk/include/iprt/http.h

    r74222 r74224  
    468468 * @param   cbContent       The content length field value, UINT64_MAX if not available.
    469469 * @param   pvUser          The user parameter.
     470 *
     471 * @note    The @a offContent parameter does not imply random access or anthing
     472 *          like that, it is just a convenience provided by the caller.  The
     473 *          value is the sum of the previous @a cbBuf values.
    470474 */
    471475typedef DECLCALLBACK(int) FNRTHTTPDOWNLOADCALLBACK(RTHTTP hHttp, void const *pvBuf, size_t cbBuf, uint32_t uHttpStatus,
     
    511515 * @param   pcbActual       Actual number of bytes provided.
    512516 * @param   pvUser          The user parameter.
     517 *
     518 * @note    The @a offContent parameter does not imply random access or anthing
     519 *          like that, it is just a convenience provided by the caller.  The
     520 *          value is the sum of the previously returned @a *pcbActual values.
    513521 */
    514522typedef DECLCALLBACK(int) FNRTHTTPUPLOADCALLBACK(RTHTTP hHttp, void *pvBuf, size_t cbBuf, uint64_t offContent,
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