houxiao
2017-07-10 d9125b1f5e3bfd1c657d75c4ef812f1202dc406d
FaceServer/proto_hton_ntoh.cpp
@@ -55,11 +55,13 @@
void FDP_FaceDetectPB::hton()
{
   db_id = htonl(db_id);
   camera_id = htons(camera_id);
}
void FDP_FaceDetectPB::ntoh()
{
   db_id = ntohl(db_id);
   camera_id = ntohs(camera_id);
}
void FDP_FaceDetectResult::hton()
@@ -67,6 +69,8 @@
   db_id = htonl(db_id);
   st_id = htonl(st_id);
   confidence = htons(confidence);
   camera_id = htons(camera_id);
   st_track_id = htonl(st_track_id);
}
void FDP_FaceDetectResult::ntoh()
@@ -74,4 +78,6 @@
   db_id = ntohl(db_id);
   st_id = ntohl(st_id);
   confidence = ntohs(confidence);
   camera_id = ntohs(camera_id);
   st_track_id = ntohl(st_track_id);
}