PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
Mid

Extract Portion of Buffer or String. More...

Collaboration diagram for Mid:

Detailed Description

Extract Portion of Buffer or String.

See also
Section 19.6.86 of the ACPI specification for more details.

Functions

aml_object_taml_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.
 

Function Documentation

◆ aml_mid()

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.

Parameters
stateThe AML state.
bufferStringThe buffer or string object to extract from.
indexThe starting index for the extraction.
lengthThe length of the portion to extract.
Returns
On success, the new buffer or string object containing the extracted portion. On failure, NULL and errno is set.

Definition at line 3 of file mid.c.

Here is the call graph for this function:
Here is the caller graph for this function: