diff options
author | Alex Nelson <ajnelson@cs.ucsc.edu> | 2011-09-01 18:17:36 -0700 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-09-06 14:58:14 +0100 |
commit | e85b1eaa268caea316f6aa8e02738b3d94297250 (patch) | |
tree | 37f8f2b2f6977a4b4ffd07503b21229baaf00c9b /generator | |
parent | 2929a0053a56e1d3b0bed26f16a1e1ad83141891 (diff) | |
download | hivex-e85b1eaa268caea316f6aa8e02738b3d94297250.tar.gz hivex-e85b1eaa268caea316f6aa8e02738b3d94297250.tar.xz hivex-e85b1eaa268caea316f6aa8e02738b3d94297250.zip |
hivex: Add metadata length functions for nodes and values
This patch adds hivex_node_struct_length and hivex_value_struct_length
to the hivex ABI, to report the amount of hive space used for each
stored structure.
Signed-off-by: Alex Nelson <ajnelson@cs.ucsc.edu>
A fix added by RWMJ.
Diffstat (limited to 'generator')
-rwxr-xr-x | generator/generator.ml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generator/generator.ml b/generator/generator.ml index 6f318ac..b6fb8b3 100755 --- a/generator/generator.ml +++ b/generator/generator.ml @@ -262,6 +262,18 @@ information, and the value itself. Also, C<hivex_value_*> functions below which can be used to return the value in a more useful form when you know the type in advance."; + "node_struct_length", (RSize, [AHive; ANode "node"]), + "return the length of a node", + "\ +Return the length of the node data structure. Returns 0 +and sets errno on error."; + + "value_struct_length", (RSize, [AHive; AValue "val"]), + "return the length of a value data structure", + "\ +Return the length of the value data structure. Returns 0 +and sets errno on error."; + "value_value", (RLenTypeVal, [AHive; AValue "val"]), "return data length, data type and data of a value", "\ |