esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
core_stream_ops_t Struct Reference

#include <stream.h>

Data Fields

int32_t(* read )(void *ctx, void *buf, size_t len)
 Read up to len bytes. Returns bytes read (0 at EOF) or a negative core_err_t.
 
int(* seek )(void *ctx, int64_t offset, int whence)
 whence: 0 = SEEK_SET, 1 = SEEK_CUR, 2 = SEEK_END. Returns CORE_OK or error.
 
int64_t(* tell )(void *ctx)
 
int64_t(* size )(void *ctx)
 total size in bytes, -1 if unknown
 
void(* close )(void *ctx)
 releases ctx
 

Field Documentation

◆ close

void(* core_stream_ops_t::close) (void *ctx)

releases ctx

◆ read

int32_t(* core_stream_ops_t::read) (void *ctx, void *buf, size_t len)

Read up to len bytes. Returns bytes read (0 at EOF) or a negative core_err_t.

◆ seek

int(* core_stream_ops_t::seek) (void *ctx, int64_t offset, int whence)

whence: 0 = SEEK_SET, 1 = SEEK_CUR, 2 = SEEK_END. Returns CORE_OK or error.

◆ size

int64_t(* core_stream_ops_t::size) (void *ctx)

total size in bytes, -1 if unknown

◆ tell

int64_t(* core_stream_ops_t::tell) (void *ctx)

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