Skip to content

File utils.c#

Go to the source code of this file

  • #include "utils.h"
  • #include <stddef.h>
  • #include <stdint.h>
  • #include <stdbool.h>
  • #include <string.h>
  • #include <errno.h>

Public Static Attributes#

Type Name
const char UPISND_BASE64_TABLE = /* multi line expression */

Public Functions#

Type Name
int upisnd_base64_encode (char * dst, size_t dst_length, const void * d, size_t length, bool pad)
uint32_t upisnd_xoshiro128_star_star_next (upisnd_xoshiro128_star_star_seed_t seed)

Public Static Functions#

Type Name
uint32_t rotl (const uint32_t x, int k)

UPISND_BASE64_TABLE#

const char UPISND_BASE64_TABLE[64];

upisnd_base64_encode#

int upisnd_base64_encode (
    char * dst,
    size_t dst_length,
    const void * d,
    size_t length,
    bool pad
) 

upisnd_xoshiro128_star_star_next#

uint32_t upisnd_xoshiro128_star_star_next (
    upisnd_xoshiro128_star_star_seed_t seed
) 

rotl#

static inline uint32_t rotl (
    const uint32_t x,
    int k
)