thistle-sdk
Thistle SDK documentation
Loading...
Searching...
No Matches
rustls_slice_bytes Struct Reference

#include <rustls.h>

Data Fields

const uint8_t * data
 
size_t len
 

Detailed Description

A read-only view on a Rust byte slice.

This is used to pass data from rustls-ffi to callback functions provided by the user of the API. len indicates the number of bytes than can be safely read.

The memory exposed is available as specified by the function using this in its signature. For instance, when this is a parameter to a callback, the lifetime will usually be the duration of the callback. Functions that receive one of these must not dereference the data pointer beyond the allowed lifetime.

Field Documentation

◆ data

const uint8_t* rustls_slice_bytes::data

◆ len

size_t rustls_slice_bytes::len

The documentation for this struct was generated from the following file: