35 if (index >= objectLength)
40 if (index + length > objectLength)
42 length = objectLength - index;
#define DEREF_DEFER(ptr)
RAII-style cleanup for scoped references.
#define REF(ptr)
Increment reference count.
#define EINVAL
Invalid argument.
#define errno
Error number variable.
#define NULL
Pointer error value.
#define ERR
Integer error value.
uint64_t aml_uint_t
AML Integer type.
aml_object_t * aml_mid(aml_state_t *state, aml_object_t *bufferString, aml_uint_t index, aml_uint_t length)
Performs a "mid" operation, extracting a portion of a buffer or string.
aml_object_t * aml_object_new(void)
Allocate a new ACPI object.
uint64_t aml_buffer_set_empty(aml_object_t *object, uint64_t length)
Set a object as an empty buffer with the given length.
uint64_t aml_string_set_empty(aml_object_t *object, uint64_t length)
Set a object as an empty string with the given length.
_PUBLIC void * memcpy(void *_RESTRICT s1, const void *_RESTRICT s2, size_t n)