X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=lib%2Fvirt_mem_mmap.mli;fp=lib%2Fvirt_mem_mmap.mli;h=0ed9176ea848bb9e3806cb1d5361b3c7368defef;hp=de052a290daa95c3a10f1dff672f4c5e056f1136;hb=6718047aff504b3261229dd648b1a4c00ca9ab21;hpb=a42a14f01c5df9f46d6b09a2700d517a28f8619f diff --git a/lib/virt_mem_mmap.mli b/lib/virt_mem_mmap.mli index de052a2..0ed9176 100644 --- a/lib/virt_mem_mmap.mli +++ b/lib/virt_mem_mmap.mli @@ -52,6 +52,13 @@ val add_file : ('a, 'b) t -> Unix.file_descr -> addr -> ('a, 'b) t (** Add file [fd] at address [addr] to an existing memory map. Behaviour is undefined if memory mappings overlap. *) +val of_string : string -> addr -> ([`NoWordsize], [`NoEndian]) t +(** Create a new memory map, mapping string at address [addr]. *) + +val add_string : ('a, 'b) t -> string -> addr -> ('a, 'b) t +(** Add string at address [addr] to an existing memory map. + Behaviour is undefined if memory mappings overlap. *) + val find : ('a, 'b) t -> ?start:addr -> string -> addr option (** Find string in a memory map and return its address (if found). You can pass an optional starting address. Any holes in