Convert the specified stream entry ID as a 128 bit big endian number, so * that the IDs can be sorted lexicographically. */
| 369 | /* Convert the specified stream entry ID as a 128 bit big endian number, so |
| 370 | * that the IDs can be sorted lexicographically. */ |
| 371 | void streamEncodeID(void *buf, streamID *id) { |
| 372 | uint64_t e[2]; |
| 373 | e[0] = htonu64(id->ms); |
| 374 | e[1] = htonu64(id->seq); |
| 375 | memcpy(buf,e,sizeof(e)); |
| 376 | } |
| 377 | |
| 378 | /* This is the reverse of streamEncodeID(): the decoded ID will be stored |
| 379 | * in the 'id' structure passed by reference. The buffer 'buf' must point |
no outgoing calls
no test coverage detected