debian man page for mtbl_fixed

Query: mtbl_fixed

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MTBL_FIXED(3)															     MTBL_FIXED(3)

NAME
mtbl_fixed - Fixed-width encoding and decoding of 32 and 64 bit integers
SYNOPSIS
#include <mtbl.h> size_t mtbl_fixed_encode32(uint8_t *dst, uint32_t value); size_t mtbl_fixed_encode64(uint8_t *dst, uint64_t value); uint32_t mtbl_fixed_decode32(const uint8_t *ptr); uint64_t mtbl_fixed_decode64(const uint8_t *ptr);
DESCRIPTION
mtbl_fixed_encode32() and mtbl_fixed_encode64() write the 32 or 64 bit quantity, respectively, in the argument value to the buffer in the argument dst. The quantity will be written in little endian order, regardless of host architecture. mtbl_fixed_decode32() and mtbl_fixed_decode64() read and return the 32 or 64 bit quantity, respectively, in the argument ptr. The quantity will be read in little endian order, regardless of host architecture. Bounds checking must be performed by the caller.
RETURN VALUE
mtbl_fixed_encode32() and mtbl_fixed_encode64() return the number of bytes written to the buffer. (4 or 8, respectively.) mtbl_fixed_decode32() and mtbl_fixed_decode64() return the decoded quantity. 05/29/2012 MTBL_FIXED(3)
Related Man Pages
mtbl_varint(3) - debian
inet_net_pton(3) - freebsd
inet_net(3) - netbsd
inet_net_pton(3) - osx
inet_net(3) - osx
Similar Topics in the Unix Linux Community
Installing Dash Shell on OS X Lion
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
One instance of comparing grep and awk