MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getAlignedBuffer

Method getAlignedBuffer

src/common/classes/array.h:413–420  ·  view source on GitHub ↗

prepare array to be used as a buffer of capacity bytes aligned on given alignment

Source from the content-addressed store, hash-verified

411
412 // prepare array to be used as a buffer of capacity bytes aligned on given alignment
413 T* getAlignedBuffer(const size_type capacityL, const size_type alignL)
414 {
415 static_assert(sizeof(T) == 1, "sizeof(T) != 1");
416
417 ensureCapacity(capacityL + alignL, false);
418 count = capacityL + alignL;
419 return FB_ALIGN(data, alignL);
420 }
421
422 // clear array and release dinamically allocated memory
423 void free()

Callers 8

backup_databaseMethod · 0.80
check_single_maintenanceFunction · 0.80
BackupManagerMethod · 0.80
SDW_add_fileFunction · 0.80
SDW_startFunction · 0.80
PAG_header_initFunction · 0.80
PAG_init2Function · 0.80
PAG_page_countFunction · 0.80

Calls 1

FB_ALIGNFunction · 0.85

Tested by

no test coverage detected