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
inet_net_pton(3) - mojave
mtbl_varint(3) - debian
swap_word_bytes(9r) - osf1
inet_net(3) - osx
inet_net_ntop(3) - freebsd
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
One instance of comparing grep and awk
Weird 'find' results
A (ksh) Library For and From UNIX.com
My first PERL incarnation... Audio Oscillograph