search for: check_off

Displaying 1 result from an estimated 1 matches for "check_off".

Did you mean: check_cfc
2011 Oct 19
1
[hivex][PATCH 4/8] ocaml: Add unit test for new RLenValue type
...value cell should be 0,0, due to the value data being inline. + *) + + +open Unix +open Printf +let (//) = Filename.concat + +let () = + let h = Hivex.open_file ("../images/large") [] in + let (data_off, data_len) = Hivex.value_data_cell_offset h (Obj.magic 297680:Hivex.value) in + let check_off = assert (data_off == (Obj.magic 0:Hivex.value)) in + let check_len = assert (data_len == 0) in + printf "Offset and length of value data for value metadata at offset 297680 is %d, %d.\n" (Obj.magic data_off:int) (Obj.magic data_len:int); + + Hivex.close h; + + (* Gc.compact is a good...