bytestring.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_BYTESTRING_H
#define RUDIMENTS_BYTESTRING_H
#include <rudiments/private/bytestringincludes.h>
class RUDIMENTS_DLLSPEC bytestring {
public:
static void *duplicate(const void *src, size_t size);
static void *copy(void *dest, const void *src,
size_t size);
static void *copyWithOverlap(void *dest,
const void *src,
size_t size);
static void *copyUntil(void *dest, const void *src,
unsigned char character,
size_t size);
static void *copySwapBytes(void *dest,
const void *src,
size_t size);
static void *set(void *dest, unsigned char character,
size_t size);
static void *zero(void *dest, size_t size);
static int32_t compare(const void *s1, const void *s2,
size_t size);
static void *findFirst(void *haystack,
unsigned char needle,
size_t size);
static void *findLast(void *haystack,
unsigned char needle,
size_t size);
static void *findFirst(void *haystack,
size_t haystacksize,
const void *needle,
size_t needleize);
static void *findLast(void *haystack,
size_t haystacksize,
const void *needle,
size_t needleize);
static const void *findFirst(const void *haystack,
unsigned char needle,
size_t size);
static const void *findLast(const void *haystack,
unsigned char needle,
size_t size);
static const void *findFirst(const void *haystack,
size_t haystacksize,
const void *needle,
size_t needlesize);
static const void *findLast(const void *haystack,
size_t haystacksize,
const void *needle,
size_t needlesize);
};
#endif
bytestring
Definition: bytestring.h:15
bytestring::findLast
static void * findLast(void *haystack, unsigned char needle, size_t size)
bytestring::findLast
static void * findLast(void *haystack, size_t haystacksize, const void *needle, size_t needleize)
bytestring::zero
static void * zero(void *dest, size_t size)
bytestring::compare
static int32_t compare(const void *s1, const void *s2, size_t size)
bytestring::findLast
static const void * findLast(const void *haystack, size_t haystacksize, const void *needle, size_t needlesize)
bytestring::findFirst
static void * findFirst(void *haystack, size_t haystacksize, const void *needle, size_t needleize)
bytestring::copyWithOverlap
static void * copyWithOverlap(void *dest, const void *src, size_t size)
bytestring::copyUntil
static void * copyUntil(void *dest, const void *src, unsigned char character, size_t size)
bytestring::duplicate
static void * duplicate(const void *src, size_t size)
bytestring::findFirst
static const void * findFirst(const void *haystack, size_t haystacksize, const void *needle, size_t needlesize)
bytestring::copySwapBytes
static void * copySwapBytes(void *dest, const void *src, size_t size)
bytestring::findFirst
static const void * findFirst(const void *haystack, unsigned char needle, size_t size)
bytestring::findFirst
static void * findFirst(void *haystack, unsigned char needle, size_t size)
bytestring::copy
static void * copy(void *dest, const void *src, size_t size)
bytestring::findLast
static const void * findLast(const void *haystack, unsigned char needle, size_t size)
bytestring::set
static void * set(void *dest, unsigned char character, size_t size)
character
Definition: character.h:11