Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
MyAllocator Struct Reference
Inheritance diagram for MyAllocator:
Collaboration diagram for MyAllocator:

Public Member Functions

Xbyak::uint8 * alloc (size_t size)
 
void free (Xbyak::uint8 *)
 
- Public Member Functions inherited from Xbyak::Allocator
virtual ~Allocator ()
 
virtual bool useProtect () const
 

Detailed Description

Definition at line 343 of file jmp.cpp.

Member Function Documentation

◆ alloc()

Xbyak::uint8 * MyAllocator::alloc ( size_t size)
inlinevirtual

Reimplemented from Xbyak::Allocator.

Definition at line 344 of file jmp.cpp.

345 {
346 if (size < sizeof(bufS)) {
347 printf("test use bufS(%d)\n", (int)size);
348 return bufS;
349 }
350 if (size < sizeof(bufL)) {
351 printf("test use bufL(%d)\n", (int)size);
352 return bufL;
353 }
354 fprintf(stderr, "no memory %d\n", (int)size);
355 exit(1);
356 }
Xbyak::uint8 bufL[4096 *32]
Definition jmp.cpp:340
Xbyak::uint8 bufS[4096 *2]
Definition jmp.cpp:341
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30

◆ free()

void MyAllocator::free ( Xbyak::uint8 * )
inlinevirtual

Reimplemented from Xbyak::Allocator.

Definition at line 357 of file jmp.cpp.

358 {
359 }

The documentation for this struct was generated from the following file: