bool
blob_align(struct blob *blob, size_t alignment)
{
- const size_t new_size = align64(blob->size, alignment);
+ const size_t new_size = ALIGN(blob->size, alignment);
if (blob->size < new_size) {
if (!grow_to_fit(blob, new_size - blob->size))
void
blob_reader_align(struct blob_reader *blob, size_t alignment)
{
- blob->current = blob->data + align64(blob->current - blob->data, alignment);
+ blob->current = blob->data + ALIGN(blob->current - blob->data, alignment);
}
void
BLOB_WRITE_TYPE(blob_write_intptr, intptr_t)
#define ASSERT_ALIGNED(_offset, _align) \
- assert(align64((_offset), (_align)) == (_offset))
+ assert(ALIGN((_offset), (_align)) == (_offset))
bool
blob_overwrite_uint8 (struct blob *blob,