Lines Matching defs:pAllocInfo
30 static int32_t UnpackAllocInfo(MessageParcel &data, AllocInfo *pAllocInfo)
32 if (pAllocInfo == nullptr) {
35 pAllocInfo->width = data.ReadUint32();
36 pAllocInfo->height = data.ReadUint32();
37 pAllocInfo->usage = data.ReadUint64();
38 pAllocInfo->format = static_cast<PixelFormat>(data.ReadUint32());
39 pAllocInfo->expectedSize = data.ReadUint32();
43 static int32_t PackAllocInfo(MessageParcel &data, const AllocInfo *pAllocInfo)
45 if (pAllocInfo == nullptr) {
48 if (!data.WriteUint32(pAllocInfo->width)) {
52 if (!data.WriteUint32(pAllocInfo->height)) {
56 if (!data.WriteUint64(pAllocInfo->usage)) {
60 if (!data.WriteUint32(pAllocInfo->format)) {
64 if (!data.WriteUint32(pAllocInfo->expectedSize)) {