diff options
author | Alex Nelson <ajnelson@cs.ucsc.edu> | 2011-09-01 18:17:27 -0700 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-09-06 14:58:01 +0100 |
commit | 2929a0053a56e1d3b0bed26f16a1e1ad83141891 (patch) | |
tree | b32ad01cb42696998fe6fcf939aae9373c94697d /generator | |
parent | 79d291f8d23263dc97e872705899d35c90368166 (diff) | |
download | hivex-2929a0053a56e1d3b0bed26f16a1e1ad83141891.tar.gz hivex-2929a0053a56e1d3b0bed26f16a1e1ad83141891.tar.xz hivex-2929a0053a56e1d3b0bed26f16a1e1ad83141891.zip |
hivex: Split value_key function into value_key and value_key_len
This function breaks the value name calculation out so the name does
not need to be fetched and immediately thrown away when one only needs
the name.
Signed-off-by: Alex Nelson <ajnelson@cs.ucsc.edu>
RWMJ fixed hivex_value_key handling of errno.
Diffstat (limited to 'generator')
-rwxr-xr-x | generator/generator.ml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/generator/generator.ml b/generator/generator.ml index b880b48..6f318ac 100755 --- a/generator/generator.ml +++ b/generator/generator.ml @@ -229,6 +229,17 @@ string C<\"\"> here. The default key is often written C<\"@\">, but inside hives that has no meaning and won't give you the default key."; + "value_key_len", (RSize, [AHive; AValue "val"]), + "return the length of a value's key", + "\ +Return the length of the key (name) of a (key, value) pair. The +length can legitimately be 0, so errno is the necesary mechanism +to check for errors. + +In the context of Windows Registries, a zero-length name means +that this value is the default key for this node in the tree. +This is usually written as C<\"@\">."; + "value_key", (RString, [AHive; AValue "val"]), "return the key of a (key, value) pair", "\ |