returns the version of the bin protocol from the given message */
| 99 | |
| 100 | /* returns the version of the bin protocol from the given message */ |
| 101 | static inline short get_bin_pkg_version(bin_packet_t *packet) |
| 102 | { |
| 103 | short rval; |
| 104 | |
| 105 | memcpy(&rval, packet->buffer.s + BIN_PACKET_MARKER_SIZE |
| 106 | + PKG_LEN_FIELD_SIZE, sizeof(rval)); |
| 107 | return rval; |
| 108 | } |
| 109 | |
| 110 | /* overrides the version of the bin protocol from the given message */ |
| 111 | static inline void set_bin_pkg_version(bin_packet_t *packet, short new_version) |
no outgoing calls
no test coverage detected