FreeNOS
|
Memory block operations class. More...
#include <MemoryBlock.h>
Static Public Member Functions | |
static void * | set (void *dest, int ch, unsigned count) |
Fill memory with a constant byte. More... | |
static Size | copy (void *dest, const void *src, Size count) |
Copy memory from one place to another. More... | |
static Size | copy (char *dest, char *src, Size count) |
Copy a character string. More... | |
static bool | compare (const void *p1, const void *p2, const Size count) |
Compare memory. More... | |
static bool | compare (const char *p1, const char *p2, const Size count=0) |
Compare memory. More... | |
Memory block operations class.
Definition at line 38 of file MemoryBlock.h.
|
static |
|
static |
Compare memory.
Definition at line 72 of file MemoryBlock.cpp.
Referenced by MpiTarget::initialize(), MpiTarget::initializeMaster(), and DhcpClient::receiveBootResponse().
Copy a character string.
dest | Destination string. |
src | Source string. |
count | Number of bytes to copy. |
Definition at line 47 of file MemoryBlock.cpp.
Copy memory from one place to another.
dest | Destination address. |
src | Source address. |
count | Number of bytes to copy. |
Definition at line 36 of file MemoryBlock.cpp.
References sp.
Referenced by ARMException::ARMException(), IOBuffer::bufferedWrite(), ProcessShares::createShare(), Lz4Decompressor::decompress(), ARMProcess::execute(), FileSystemRequest::FileSystemRequest(), FileSystemClient::findMount(), Loopback::getAddress(), Ethernet::getAddress(), Ethernet::getTransmitPacket(), DhcpClient::initialize(), Directory::insert(), SunxiKernel::interrupt(), RaspberryKernel::interrupt(), kernel_main(), Mount::listMounts(), Kernel::loadBootProgram(), ARP::lookupAddress(), FileSystemServer::mountHandler(), multibootToCoreInfo(), String::operator<<(), String::operator=(), UDPSocket::process(), ICMP::process(), MpiProxy::processExec(), PseudoFile::PseudoFile(), BootImageStorage::read(), LinnDirectory::read(), IOBuffer::read(), Lz4Decompressor::read(), read16(), read32(), read64(), read8(), readBe16(), readBe32(), readBe64(), readLe16(), readLe32(), readLe64(), ProcessShares::readShare(), MpiHost::receivePacket(), DatastoreClient::registerBuffer(), FileSystemClient::request(), String::resize(), RecoveryServer::rewriteProgram(), MpiHost::send(), DhcpClient::sendBootRequest(), ICMP::sendPacket(), ARP::sendReply(), ChannelClient::sendRequest(), ARP::sendRequest(), Loopback::setAddress(), Ethernet::setAddress(), ARMProcess::setCpuState(), ICMPSocket::setReply(), Process::sleep(), spawn(), MpiHost::startProcesses(), String::String(), SystemInfoHandler(), ARMKernel::trap(), String::trim(), TestChar< T >::unique(), ARP::updateCacheEntry(), VMCopyHandler(), IPV4Address::write(), PseudoFile::write(), UDPSocket::write(), IOBuffer::write(), VGA::write(), write16(), write32(), write64(), write8(), writeBe16(), writeBe32(), writeBe64(), writeLe16(), writeLe32(), and writeLe64().
|
static |
Fill memory with a constant byte.
Definition at line 25 of file MemoryBlock.cpp.
Referenced by Allocator::Allocator(), ARMMap::ARMMap(), ARPSocket::ARPSocket(), BitArray::clear(), clearBSS(), CoreServer::clearPages(), CoreServer::CoreServer(), MpiProxy::createChannels(), ProcessShares::createShare(), DhcpClient::DhcpClient(), Ethernet::Ethernet(), NetSend::exec(), ICMPSocket::ICMPSocket(), ARMPaging::initialize(), IntelPaging::initialize(), Process::initialize(), Kernel::initializeHeap(), MpiTarget::initializeMaster(), ARP::insertCacheEntry(), IntelKernel::IntelKernel(), IntelMap::IntelMap(), kernel_main(), Kernel::loadBootProgram(), BootSymbolStorage::loadSegment(), BootSymbolStorage::loadSymbol(), ARP::lookupAddress(), ARMFirstTable::map(), IntelPageDirectory::map(), FileSystemServer::mount(), MpiProxy::MpiProxy(), MpiTarget::MpiTarget(), multibootToCoreInfo(), NetworkSocket::NetworkSocket(), String::pad(), PoolAllocator::PoolAllocator(), CoreServer::prepareCoreInfo(), Process::Process(), MpiProxy::processExec(), MpiProxy::processTerminate(), IntelProcess::reset(), ARMProcess::reset(), MemoryChannel::reset(), RecoveryServer::rewriteProgram(), DhcpClient::sendBootRequest(), ARP::sendRequest(), setupMappings(), spawn(), TestChar< T >::unique(), CoreServer::unloadKernel(), Process::wakeup(), and PseudoFile::write().