27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ACPI Source Language (ASL)Reference<br />

19.6.130 ToBuffer (Convert Data to Buffer)<br />

Syntax<br />

ToBuffer (Data, Result) => Buffer<br />

Arguments<br />

Data must be an Integer, String, or Buffer data type.<br />

Description<br />

Data is converted to buffer type <strong>and</strong> the result is optionally stored into Result. If Data is an integer,<br />

it is converted into n bytes of buffer (where n is 4 if the definition block has defined integers as 32<br />

bits or 8 if the definition block has defined integers as 64 bits as indicated by the Definition Block<br />

table header’s Revision field), taking the least significant byte of integer as the first byte of buffer. If<br />

Data is a buffer, no conversion is performed. If Data is a string, each ASCII string character is<br />

copied to one buffer byte, including the string null terminator. A null (zero-length) string will be<br />

converted to a zero-length buffer.<br />

19.6.131 ToDecimalString (Convert Data to Decimal String)<br />

Syntax<br />

ToDecimalString (Data, Result) => String<br />

Arguments<br />

Data must be an Integer, String, or Buffer data type.<br />

Description<br />

Data is converted to a decimal string, <strong>and</strong> the result is optionally stored into Result. If Data is<br />

already a string, no action is performed. If Data is a buffer, it is converted to a string of decimal<br />

values separated by commas. (Each byte of the buffer is converted to a single decimal value.) A<br />

zero-length buffer will be converted to a null (zero-length) string.<br />

19.6.132 ToHexString (Convert Data to Hexadecimal String)<br />

Syntax<br />

ToHexString (Data, Result) => String<br />

Arguments<br />

Data must be an Integer, String, or Buffer data type.<br />

Description<br />

Data is converted to a hexadecimal string, <strong>and</strong> the result is optionally stored into Result. If Data is<br />

already a string, no action is performed. If Data is a buffer, it is converted to a string of hexadecimal<br />

values separated by commas. A zero-length buffer will be converted to a null (zero-length) string.<br />

Version 6.0 893

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!