GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BSON_ALIGNED_ALLOC(3) libbson BSON_ALIGNED_ALLOC(3)

void *
bson_aligned_alloc (size_t alignment, size_t num_bytes);


  • alignment: The alignment of the allocated bytes of memory. Must be a power of 2 and a multiple of sizeof (void *).
  • num_bytes: The number of bytes to allocate. Must be a multiple of alignment.

This is a portable aligned_alloc() wrapper.

In general, this function will return an allocation at least sizeof(void*) bytes or bigger with an alignment of at least alignment.

If there was a failure to allocate num_bytes bytes aligned to alignment, the process will be aborted.

WARNING:

This function will abort on failure to allocate memory.


A pointer to a memory region which HAS NOT been zeroed.

MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.