Searched refs:byte_vector (Results 1 – 1 of 1) sorted by relevance
53 std::vector<uint8_t> byte_vector; in writeToParcel() local57 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() local76 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()