Home
last modified time | relevance | path

Searched refs:byte_vector (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/libs/binder/
DIpPrefix.cpp53 std::vector<uint8_t> byte_vector; in writeToParcel() local
57 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr)); in writeToParcel()
60 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr)); in writeToParcel()
63 RETURN_IF_FAILED(parcel->writeByteVector(byte_vector)); in writeToParcel()
74 std::vector<uint8_t> byte_vector; in readFromParcel() local
76 RETURN_IF_FAILED(parcel->readByteVector(&byte_vector)); in readFromParcel()
79 if (byte_vector.size() == 16) { in readFromParcel()
81 memcpy((void*)&mUnion.mIn6Addr, &byte_vector[0], sizeof(mUnion.mIn6Addr)); in readFromParcel()
83 } else if (byte_vector.size() == 4) { in readFromParcel()
85 memcpy((void*)&mUnion.mInAddr, &byte_vector[0], sizeof(mUnion.mInAddr)); in readFromParcel()