|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
Kernel text print functions. More...
#include <bit>#include <concepts>#include <cstdarg>#include <limits>#include <span>#include <string_view>#include <type_traits>#include <arch/types.hpp>#include <klib/kMath.hpp>

Go to the source code of this file.
Namespaces | |
| namespace | igros |
| IgrOS kernel: common types and literals. | |
| namespace | igros::klib |
| Freestanding kernel library: printing, math, alignment, flags, strings. | |
Enumerations | |
| enum class | igros::klib::radix_t : igros_byte_t { igros::klib::BIN = 0x02_u8 , igros::klib::OCT = 0x08_u8 , igros::klib::DEC = 0x0A_u8 , igros::klib::HEX = 0x10_u8 } |
| Integer representation types. More... | |
Functions | |
| template<std::unsigned_integral U> | |
| constexpr auto | igros::klib::kdigits (const std::span< char > buffer, U value, const radix_t radix, const bool upper=false) noexcept -> std::string_view |
| Digits of unsigned value written to the end of buffer (no sign, no terminator). | |
| auto | igros::klib::kvsnprintf (char *const buffer, const igros_usize_t size, const char *const format, std::va_list list) noexcept -> igros_usize_t |
| Kernel vsnprintf function (returns written length without terminator). | |
| auto | igros::klib::ksnprintf (char *const buffer, const igros_usize_t size, const char *const format,...) noexcept -> igros_usize_t |
| Kernel snprintf function (returns written length without terminator). | |
| void | igros::klib::kprintf (const char *const format,...) noexcept |
| Kernel printf function (arguments are checked against format at compile time). | |
Kernel text print functions.
Definition in file kPrint.hpp.