vttp
An HTTP backed Virtual Table extension for SQLite
Loading...
Searching...
No Matches
Functions | Variables
cookie.h File Reference

In memory streams. More...

#include <stdio.h>
Include dependency graph for cookie.h:

Go to the source code of this file.

Functions

FILE * cookie (const struct cookie *backend, void *ctx)
 
size_t fwrite8 (const char *src, size_t n, FILE *dst)
 

Variables

const struct cookie COOKIE_PASSTHROUGH
 
const struct cookie COOKIE_JSON
 

Detailed Description

In memory streams.

In memory stream that implements FIFO over a #deque

Function Documentation

◆ cookie()

FILE * cookie ( const struct cookie *  backend,
void *  ctx 
)

Initialize a custom io stream with the provided callbacks in IO with nullable CTX.

...

내가 만든 쿠키

◆ fwrite8()

size_t fwrite8 ( const char *  src,
size_t  n,
FILE *  dst 
)

fwrite() on N bytes of data from SRC buffer to DST stream.

Variable Documentation

◆ COOKIE_JSON

const struct cookie COOKIE_JSON
extern

JSON object list stream. It separates elements by newline '
', so it's basically NDJSON.

◆ COOKIE_PASSTHROUGH

const struct cookie COOKIE_PASSTHROUGH
extern

The trivial cookie implementation that just forwards written bytes into a readable end.