BOOS Core API 3.1
- api::Collection<Type>
- api::Heap
- api::IllegalValue<Type>
- api::Interrupt
- api::Iterable<Type>
- api::Iterator<Type>
- api::Kernel
- api::List<Type>
- api::ListIterator<Type>
- api::Mutex
- api::Object
- api::ProcessorInterrupt
- api::ProcessorPll
- api::ProcessorRegisters
- api::ProcessorTimer
- api::Queue<Type>
- api::Resource
- api::Runtime
- api::Scheduler
- api::Semaphore
- api::Stack<Type>
- api::String<Char>
- api::Synchronizable
- api::System
- api::Task
- api::Thread
- api::Timer
- api::Toggle
- api::Value<Type>
- library::AbstractBuffer<Type,Alloc>
- library::AbstractLinkedList<Type,Alloc>
- library::Align<Type,SIZEOF,Alloc>
- library::Buffer<Type,COUNT,Alloc>
- library::CircularList<Type,Alloc>
- library::Heap
- library::LinkedList<Type,Alloc>
- library::LinkedNode<Type,Alloc>
- library::Memory
- library::Stack<Type,Alloc>
- library::String<Char,Alloc>
- library::Toggle<Alloc>
BOOS Core is released as version 2.1
The new release of BOOS Core has gotten ARM architecture with instruction set version 5, some independent algorithms of any compilers, root interface for all interfaces, and many tiny aspects, which were implemented in it.
Class «library::Memory»
Class of static methods to manipulate memory.
- library::Memory
public:
static void* memcpy(void* dst, const void* src, size_t len);
static void* memset(void* dst, cell val, size_t len);
static char* strcat(char* dst, const char* src);
static int32 strcmp(const char* str1, const char* str2);
public: static void* memcpy(void* dst, const void* src, size_t len);
Copies a block of memory.
Parameters:
dst — pointer to the destination array where the content is to be copied,type-casted to a pointer of type void*.
src — pointer to the source of data to be copied, type-casted to a pointer of type const void*.
len — number of bytes to copy.
Returns:
destination is returned.
public: static void* memset(void* dst, cell val, size_t len);
Fills a block of memory.
Parameters:
dst — pointer to the destination block of memory to fill.
val — value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
len — Number of bytes to be set to the value.
Returns:
destination is returned.
public: static char* strcat(char* dst, const char* src);
Concatenates strings.
Parameters:
dst — pointer to the destination array, which should contain a C string, and be large enough to contain the concatenated resulting string.
src — C-string to be appended. This should not overlap destination.
Returns:
destination is returned.
public: static int32 strcmp(const char* str1, const char* str2);
Compares two strings.
Parameters:
str1 — C-string to be compared.
str2 — C-string to be compared.
Returns:
a value indicating the relationship between the strings.
public: static char* strcpy(char* dst, const char* src);
Copies a string.
Parameters:
dst — pointer to the destination array where the content is to be copied.
src — C-string to be copied.
Returns:
destination is returned.
public: static size_t strlen(const char* str);
Gets a string length.
Parameters:
str — pointer to C-string.
Returns:
the length of string.