PebbleOS
Loading...
Searching...
No Matches
Data Fields
PutBytesStorageImplementation Struct Reference

Storage backend operations, mirroring the pb_storage_*() functions. More...

#include <put_bytes_storage_internal.h>

Data Fields

bool(* init )(PutBytesStorage *storage, PutBytesObjectType object_type, uint32_t total_size, PutBytesStorageInfo *info, uint32_t append_offset)
 Initialize storage, see pb_storage_init().
 
uint32_t(* get_max_size )(PutBytesObjectType object_type)
 Get the largest object size supported for a type.
 
void(* write )(PutBytesStorage *storage, uint32_t offset, const uint8_t *buffer, uint32_t length)
 Write data, see pb_storage_write().
 
uint32_t(* calculate_crc )(PutBytesStorage *storage, PutBytesCrcType crc_type)
 Compute the CRC, see pb_storage_calculate_crc().
 
void(* deinit )(PutBytesStorage *storage, bool is_success)
 Release storage, see pb_storage_deinit().
 

Detailed Description

Storage backend operations, mirroring the pb_storage_*() functions.

Backend operations, see Put bytes storage backend interface.

Field Documentation

◆ calculate_crc

uint32_t(* PutBytesStorageImplementation::calculate_crc) (PutBytesStorage *storage, PutBytesCrcType crc_type)

Compute the CRC, see pb_storage_calculate_crc().

◆ deinit

void(* PutBytesStorageImplementation::deinit) (PutBytesStorage *storage, bool is_success)

Release storage, see pb_storage_deinit().

◆ get_max_size

uint32_t(* PutBytesStorageImplementation::get_max_size) (PutBytesObjectType object_type)

Get the largest object size supported for a type.

◆ init

bool(* PutBytesStorageImplementation::init) (PutBytesStorage *storage, PutBytesObjectType object_type, uint32_t total_size, PutBytesStorageInfo *info, uint32_t append_offset)

Initialize storage, see pb_storage_init().

◆ write

void(* PutBytesStorageImplementation::write) (PutBytesStorage *storage, uint32_t offset, const uint8_t *buffer, uint32_t length)

Write data, see pb_storage_write().


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