Skip to content

Commit

Permalink
util/buf: remove rz_buf_peek_u16() (#4547)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Jun 9, 2024
1 parent a3ffd6e commit dcabce7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions librz/include/rz_util/rz_buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,21 +364,6 @@ static inline ut8 rz_buf_peek(RZ_NONNULL RzBuffer *b) {
return x;
}

/**
* \brief Peeks at the next two bytes in the buffer as a little-endian
* unsigned 16-bit integer without modify the buffer position.
*
* It assumes that the buffer contains at least two bytes beyond the current position,
* otherwise the behavior of the function is undefined.
* \param b The buffer
* \return The ut16 value
*/
static inline ut8 rz_buf_peek_u16(RZ_NONNULL RzBuffer *b) {
ut16 x = 0;
rz_buf_read_le16_at(b, rz_buf_tell(b), &x);
return x;
}

// sparse-specific

RZ_API const RzBufferSparseChunk *rz_buf_sparse_get_chunks(RzBuffer *b, RZ_NONNULL size_t *count);
Expand Down

0 comments on commit dcabce7

Please sign in to comment.