mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
acpi_tables: aml: Implement Aml::append_aml_bytes() for MethodCall
For now it still relies on Aml::to_aml_bytes() for the children as not all structures have been ported. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -1037,13 +1037,11 @@ impl<'a> MethodCall<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Aml for MethodCall<'a> {
|
impl<'a> Aml for MethodCall<'a> {
|
||||||
fn to_aml_bytes(&self) -> Vec<u8> {
|
fn append_aml_bytes(&self, bytes: &mut Vec<u8>) {
|
||||||
let mut bytes = Vec::new();
|
self.name.append_aml_bytes(bytes);
|
||||||
bytes.extend_from_slice(&self.name.to_aml_bytes());
|
|
||||||
for arg in self.args.iter() {
|
for arg in self.args.iter() {
|
||||||
bytes.extend_from_slice(&arg.to_aml_bytes());
|
bytes.extend_from_slice(&arg.to_aml_bytes());
|
||||||
}
|
}
|
||||||
bytes
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user