PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
mid.h
Go to the documentation of this file.
1#pragma once
2
4
5/**
6 * @brief Extract Portion of Buffer or String
7 * @defgroup modules_acpi_aml_mid Mid
8 * @ingroup modules_acpi_aml
9 *
10 * @see Section 19.6.86 of the ACPI specification for more details.
11 *
12 * @{
13 */
14
15/**
16 * @brief Performs a "mid" operation, extracting a portion of a buffer or string.
17 *
18 * @param state The AML state.
19 * @param bufferString The buffer or string object to extract from.
20 * @param index The starting index for the extraction.
21 * @param length The length of the portion to extract.
22 * @return On success, the new buffer or string object containing the extracted portion. On failure, `NULL` and `errno`
23 * is set.
24 */
25aml_object_t* aml_mid(aml_state_t* state, aml_object_t* bufferString, aml_uint_t index, aml_uint_t length);
uint64_t aml_uint_t
AML Integer type.
Definition integer.h:20
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.
Definition mid.c:3
ACPI object.
Definition object.h:447
AML State.
Definition state.h:25