Skip to content

Commit

Permalink
fix: remove rebase shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jun 19, 2024
1 parent 166945a commit dfe42e8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,21 +256,8 @@ int8_t z_encoding_clone(z_owned_encoding_t *dst, const z_loaned_encoding_t *src)

const z_loaned_encoding_t *z_encoding_loan(const z_owned_encoding_t *encoding) { return encoding->_val; }

const z_loaned_bytes_t *z_value_payload(const z_loaned_value_t *value) { return &value->payload; }

z_loaned_encoding_t *z_encoding_loan_mut(z_owned_encoding_t *encoding) { return encoding->_val; }

// Convert a user owned encoding to an internal encoding, return default encoding if value invalid
static _z_encoding_t _z_encoding_from_owned(const z_owned_encoding_t *encoding) {
if (encoding == NULL) {
return _z_encoding_null();
}
if (encoding->_val == NULL) {
return _z_encoding_null();
}
return *encoding->_val;
}

const uint8_t *z_slice_data(const z_loaned_slice_t *slice) { return slice->start; }

size_t z_slice_len(const z_loaned_slice_t *slice) { return slice->len; }
Expand Down

0 comments on commit dfe42e8

Please sign in to comment.