BOOS Core API 2.2
- core::Allocator
- core::Interrupt
- core::InterruptTask
- core::Mutex
- core::Object<Alloc>
- core::Semaphore
- core::Synchronizer
- core::System
- core::Thread
- core::ThreadTask
- core::Timer
- core::TimerInterrupt
- util::AbstractBuffer<Type,Alloc>
- util::AbstractLinkedList<Type,Alloc>
- util::Align<Type,SIZEOF,Alloc>
- util::Allocator
- util::Buffer<Type,COUNT,Alloc>
- util::CircularList<Type,Alloc>
- util::Heap
- util::LinkedList<Type,Alloc>
- util::LinkedNode<Type,Alloc>
- util::Memory
- util::Object<Alloc>
- util::Stack<Type,Alloc>
- util::Toggle<Alloc>
PHP DOM Builder is unveiled in second revision
In 2014 year PHP DOM Builder library was unveiled at the first time within the framework of Baigudin Software project. Two years have been left after that moment and today we are glad to offer the second generation that is PHP DOM Builder Revision 2.
Class «util::Heap»
Heap memory.
Hardware address for system heap memory has to be aligned to eight.
- util::Heap
- public api::Heap
- public api::Object
- public api::Heap
public:
Heap(int64 size, ::api::Toggle*& sw);
virtual void* alloc(size_t size, void* ptr);
virtual bool isConstructed() const;
public: Heap(int64 size, ::api::Toggle*& sw);
Constructor.
Reference to global interrupt interface pointer is used for a possibility to change a value of that pointer. Until that pointer is NULL global interrupt is not used. This gives you a possibility to change using global interrupts on fly.
Parameters:
size — total heap size.
sw — reference to global interrupt toggle interface.
public: virtual ~Heap();
Destructor.
public: virtual void* alloc(size_t size, void* ptr);
Allocates memory.
Parameters:
size — required memory size in byte.
ptr — NULL value becomes to allocate memory, and other given values are simply returned as memory address.
Returns:
pointer to allocated memory or NULL.
public: virtual void free(void* ptr);
Frees an allocated memory.
Parameters:
ptr — pointer to allocated memory.
public: virtual bool isConstructed() const;
Tests if this object has been constructed.
Returns:
true if object has been constructed successfully.
public: static bool isObject(const Type* obj);
Tests if given object has been constructed object.
Parameters:
obj — pointer to object.
Returns:
true if object has been constructed successfully.
public: void* operator new(size_t, void* ptr);
Operator new.
Method initiates a building of heap memory checks and tests self memory structure data and leads to call the class constructor.
Parameters:
size — unused.
ptr — aligned to eight memory address.
Returns:
address of memory or NULL.