Lines Matching refs:p

34 void serializeSockaddr(Parcel* p, const struct sockaddr_storage* addr) {  in serializeSockaddr()  argument
39 p->writeInt32(AF_INET); in serializeSockaddr()
40 p->writeInt32(ntohl(s->sin_addr.s_addr)); in serializeSockaddr()
41 p->writeInt32(static_cast<int32_t>(ntohs(s->sin_port))); in serializeSockaddr()
49 p->writeInt32(AF_INET6); in serializeSockaddr()
50 p->writeInt32(ntohl(a[0])); in serializeSockaddr()
51 p->writeInt32(ntohl(a[1])); in serializeSockaddr()
52 p->writeInt32(ntohl(a[2])); in serializeSockaddr()
53 p->writeInt32(ntohl(a[3])); in serializeSockaddr()
54 p->writeInt32(static_cast<int32_t>(ntohs(s->sin6_port))); in serializeSockaddr()
55 p->writeInt32(ntohl(s->sin6_flowinfo)); in serializeSockaddr()
56 p->writeInt32(ntohl(s->sin6_scope_id)); in serializeSockaddr()
61 void deserializeSockaddr(const Parcel* p, struct sockaddr_storage* addr) { in deserializeSockaddr() argument
64 addr->ss_family = p->readInt32(); in deserializeSockaddr()
69 s->sin_addr.s_addr = htonl(p->readInt32()); in deserializeSockaddr()
70 s->sin_port = htons(static_cast<uint16_t>(p->readInt32())); in deserializeSockaddr()
78 a[0] = htonl(p->readInt32()); in deserializeSockaddr()
79 a[1] = htonl(p->readInt32()); in deserializeSockaddr()
80 a[2] = htonl(p->readInt32()); in deserializeSockaddr()
81 a[3] = htonl(p->readInt32()); in deserializeSockaddr()
82 s->sin6_port = htons(static_cast<uint16_t>(p->readInt32())); in deserializeSockaddr()
83 s->sin6_flowinfo = htonl(p->readInt32()); in deserializeSockaddr()
84 s->sin6_scope_id = htonl(p->readInt32()); in deserializeSockaddr()