ChibiOS/HAL 9.0.0
memstreams.c File Reference

Memory streams code. More...

#include <string.h>
#include "hal.h"
#include "memstreams.h"

Go to the source code of this file.

Functions

static size_t _writes (void *ip, const uint8_t *bp, size_t n)
static size_t _reads (void *ip, uint8_t *bp, size_t n)
static msg_t _put (void *ip, uint8_t b)
static msg_t _get (void *ip)
static msg_t _unget (void *ip, uint8_t b)
void msObjectInit (MemoryStream *msp, uint8_t *buffer, size_t size, size_t eos)
 Memory stream object initialization.

Variables

static const struct MemStreamVMT vmt = {(size_t)0, _writes, _reads, _put, _get, _unget}

Detailed Description

Memory streams code.

Definition in file memstreams.c.