OlinCoin
Test
ser_block.h
1#pragma once
2
3#include "base_block.h"
4
5/******************************************************************************
6 * Blockheaders
7 ******************************************************************************/
8
14size_t size_ser_blockheader();
15
23ssize_t ser_blockheader(unsigned char *dest, BlockHeader *blockheader);
24
33unsigned char *ser_blockheader_alloc(ssize_t *written, BlockHeader *blockheader);
34
42ssize_t deser_blockheader(BlockHeader *dest, unsigned char *src);
43
51BlockHeader *deser_blockheader_alloc(ssize_t *read, unsigned char *src);
52
53/******************************************************************************
54 * Blocks
55 ******************************************************************************/
56
63size_t size_ser_block(Block *block);
64
72ssize_t ser_block(unsigned char *dest, Block *block);
73
82unsigned char *ser_block_alloc(ssize_t *written, Block *block);
83
91ssize_t deser_block(Block *dest, unsigned char *src);
92
100Block *deser_block_alloc(ssize_t *read, unsigned char *src);
Definition: base_block.h:5
Definition: base_block.h:12