mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-15 00:34:05 +09:00
send full ntp data symmetrically from server to client.
This commit is contained in:
@@ -86,6 +86,12 @@ uint32_t byteutils_get_int_be(unsigned char* b, int offset) {
|
||||
uint64_t byteutils_get_long_be(unsigned char* b, int offset) {
|
||||
return ntohll(byteutils_get_long(b, offset));
|
||||
}
|
||||
/**
|
||||
* Writes a big endian unsigned 64 bit integer to the buffer at position offset
|
||||
*/
|
||||
void byteutils_put_long_be(unsigned char* b, int offset, uint64_t value) {
|
||||
*((uint64_t*)(b + offset)) = htonll(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads a float from the buffer at position offset
|
||||
|
||||
Reference in New Issue
Block a user