API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTBIPRESPONDER_PEEKDATA()

Brew Release
Brew MP 1.0.2
See Also
IBTBIPResponder_GetRequestData()
Description
Copies the first chunk of the image/attachment/thumbnail. The data is still retained in the object. The purpose of this API is for application to get enough data to analyze whether it is of the supported format.
This API can be called when the nDataLen field in the request indicates the presence of data.
Params
_me
[in]:
the object
dataBuf
[out]:
destination name of image/attachment
dataBufLen
[in]:
number of bytes dataBuf can hold
dataBufLenReq
[out]:
number of bytes of data available
Return
AEE_SUCCESS
[]:
request data is successfully retrieved
AEE_EBADPARM
[]:
invalid input parameters
AEE_ENOSUCH
[]:
data not available
Interface
Prototype
  •    AEEResult IBTBIPResponder_PeekData(IBTBIPResponder* _me, 
                                          uint8*           dataBuf,
                                          int              dataBufLen, 
                                          int*             dataBufLenReq);
    
Side Effect
  • None
Comments
None