Lines Matching refs:OHIPCParcel

20  * @addtogroup OHIPCParcel
52 struct OHIPCParcel;
60 typedef struct OHIPCParcel OHIPCParcel;
105 * @brief Creates an <b>OHIPCParcel</b> object, which cannot exceed 204,800 bytes.
108 * @return Returns the pointer to the <b>OHIPCParcel</b> object created if the operation is successful;
112 OHIPCParcel* OH_IPCParcel_Create(void);
115 * @brief Destroys an <b>OHIPCParcel</b> object.
118 * @param parcel Pointer to the <b>OHIPCParcel</b> object to destroy.
121 void OH_IPCParcel_Destroy(OHIPCParcel *parcel);
124 * @brief Obtains the size of the data contained in an <b>OHIPCParcel</b> object.
127 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
132 int OH_IPCParcel_GetDataSize(const OHIPCParcel *parcel);
135 * @brief Obtains the number of bytes that can be written to an <b>OHIPCParcel</b> object.
138 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
139 * @return Returns the number of bytes that can be written to the <b>OHIPCParcel</b> object. \n
143 int OH_IPCParcel_GetWritableBytes(const OHIPCParcel *parcel);
146 * @brief Obtains the number of bytes that can be read from an <b>OHIPCParcel</b> object.
149 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
150 * @return Returns the number of bytes that can be read from the <b>OHIPCParcel</b> object. \n
154 int OH_IPCParcel_GetReadableBytes(const OHIPCParcel *parcel);
157 * @brief Obtains the position where data is read in an <b>OHIPCParcel</b> object.
160 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
165 int OH_IPCParcel_GetReadPosition(const OHIPCParcel *parcel);
168 * @brief Obtains the position where data is written in an <b>OHIPCParcel</b> object.
171 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
176 int OH_IPCParcel_GetWritePosition(const OHIPCParcel *parcel);
182 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
188 int OH_IPCParcel_RewindReadPosition(OHIPCParcel *parcel, uint32_t newReadPos);
191 * @brief Resets the position to write data in an <b>OHIPCParcel</b> object.
194 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
200 int OH_IPCParcel_RewindWritePosition(OHIPCParcel *parcel, uint32_t newWritePos);
203 * @brief Writes an int8_t value to an <b>OHIPCParcel</b> object.
206 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
213 int OH_IPCParcel_WriteInt8(OHIPCParcel *parcel, int8_t value);
216 * @brief Reads an int8_t value from an <b>OHIPCParcel</b> object.
219 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
226 int OH_IPCParcel_ReadInt8(const OHIPCParcel *parcel, int8_t *value);
229 * @brief Writes an int16_t value to an <b>OHIPCParcel</b> object.
232 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
239 int OH_IPCParcel_WriteInt16(OHIPCParcel *parcel, int16_t value);
242 * @brief Reads an int16_t value from an <b>OHIPCParcel</b> object.
245 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
252 int OH_IPCParcel_ReadInt16(const OHIPCParcel *parcel, int16_t *value);
255 * @brief Writes an int32_t value to an <b>OHIPCParcel</b> object.
258 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
265 int OH_IPCParcel_WriteInt32(OHIPCParcel *parcel, int32_t value);
268 * @brief Reads an int32_t value from an <b>OHIPCParcel</b> object.
271 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
278 int OH_IPCParcel_ReadInt32(const OHIPCParcel *parcel, int32_t *value);
281 * @brief Writes an int64_t value to an <b>OHIPCParcel</b> object.
284 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
291 int OH_IPCParcel_WriteInt64(OHIPCParcel *parcel, int64_t value);
294 * @brief Reads an int64_t value from an <b>OHIPCParcel</b> object.
297 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
304 int OH_IPCParcel_ReadInt64(const OHIPCParcel *parcel, int64_t *value);
307 * @brief Writes a float value to an <b>OHIPCParcel</b> object.
310 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
317 int OH_IPCParcel_WriteFloat(OHIPCParcel *parcel, float value);
320 * @brief Reads a float value from an <b>OHIPCParcel</b> object.
323 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
330 int OH_IPCParcel_ReadFloat(const OHIPCParcel *parcel, float *value);
333 * @brief Writes a double value to an <b>OHIPCParcel</b> object.
336 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
343 int OH_IPCParcel_WriteDouble(OHIPCParcel *parcel, double value);
346 * @brief Reads a double value from an <b>OHIPCParcel</b> object.
349 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
356 int OH_IPCParcel_ReadDouble(const OHIPCParcel *parcel, double *value);
359 * @brief Writes a string including a string terminator to an <b>OHIPCParcel</b> object.
362 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
369 int OH_IPCParcel_WriteString(OHIPCParcel *parcel, const char *str);
372 * @brief Reads a string from an <b>OHIPCParcel</b> object. You can obtain the length of the string from <b>strlen</b>.
375 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
380 const char* OH_IPCParcel_ReadString(const OHIPCParcel *parcel);
383 * @brief Writes data of the specified length from the memory to an <b>OHIPCParcel</b> object.
386 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
394 int OH_IPCParcel_WriteBuffer(OHIPCParcel *parcel, const uint8_t *buffer, int32_t len);
397 * @brief Reads memory information of the specified length from an <b>OHIPCParcel</b> object.
400 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
406 const uint8_t* OH_IPCParcel_ReadBuffer(const OHIPCParcel *parcel, int32_t len);
409 * @brief Writes an <b>OHIPCRemoteStub</b> object to an <b>OHIPCParcel</b> object.
412 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
419 int OH_IPCParcel_WriteRemoteStub(OHIPCParcel *parcel, const OHIPCRemoteStub *stub);
422 * @brief Reads the <b>OHIPCRemoteStub</b> object from an <b>OHIPCParcel</b> object.
425 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
430 OHIPCRemoteStub* OH_IPCParcel_ReadRemoteStub(const OHIPCParcel *parcel);
433 * @brief Writes an <b>OHIPCRemoteProxy</b> object to an <b>OHIPCParcel</b> object.
436 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
443 int OH_IPCParcel_WriteRemoteProxy(OHIPCParcel *parcel, const OHIPCRemoteProxy *proxy);
446 * @brief Reads the <b>OHIPCRemoteProxy</b> object from an <b>OHIPCParcel</b> object.
449 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
454 OHIPCRemoteProxy* OH_IPCParcel_ReadRemoteProxy(const OHIPCParcel *parcel);
457 * @brief Writes a file descriptor to an <b>OHIPCParcel</b> object.
460 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
467 int OH_IPCParcel_WriteFileDescriptor(OHIPCParcel *parcel, int32_t fd);
470 * @brief Reads a file descriptor from an <b>OHIPCParcel</b> object.
473 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
480 int OH_IPCParcel_ReadFileDescriptor(const OHIPCParcel *parcel, int32_t *fd);
483 * @brief Appends data to an <b>OHIPCParcel</b> object.
486 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
493 int OH_IPCParcel_Append(OHIPCParcel *parcel, const OHIPCParcel *data);
496 * @brief Writes an interface token to an <b>OHIPCParcel</b> object for interface identity verification.
499 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
506 int OH_IPCParcel_WriteInterfaceToken(OHIPCParcel *parcel, const char *token);
509 * @brief Reads an interface token from an <b>OHIPCParcel</b> object for interface identity verification.
512 * @param parcel Pointer to the target <b>OHIPCParcel</b> object. It cannot be NULL.
524 int OH_IPCParcel_ReadInterfaceToken(const OHIPCParcel *parcel, char **token, int32_t *len,