Apache OpenDALâ„¢ C Binding
The C binding for Apache OpenDALâ„¢
Loading...
Searching...
No Matches
Public Attributes | List of all members
opendal_bytes Struct Reference

opendal_bytes carries raw-bytes with its length More...

#include <opendal.h>

Public Attributes

uint8_t * data
 
uintptr_t len
 
uintptr_t capacity
 

Detailed Description

opendal_bytes carries raw-bytes with its length

The opendal_bytes type is a C-compatible substitute for Vec type in Rust, it has to be manually freed. You have to call opendal_bytes_free() to free the heap memory to avoid memory leak.

See also
opendal_bytes_free

Member Data Documentation

◆ capacity

uintptr_t opendal_bytes::capacity

The capacity of the byte array

◆ data

uint8_t* opendal_bytes::data

Pointing to the byte array on heap

◆ len

uintptr_t opendal_bytes::len

The length of the byte array


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