xuxiuxi
2017-08-01 3846cd12e4e39c2026184f120706d7f7ca9d79c0
FaceServer/proto_hton_ntoh.cpp
@@ -55,21 +55,29 @@
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()
{
   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()
{
   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);
}