Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
nbdkit_debug_hexdump(3) 	     NBDKIT		 nbdkit_debug_hexdump(3)

NAME
     nbdkit_debug_hexdump - display buffer in hexdump format

SYNOPSIS
      #include <nbdkit-plugin.h>

      void nbdkit_debug_hexdump (const void *buf, size_t len,
				 const char *prefix, uint64_t start);

DESCRIPTION
     This function displays a buffer of binary data in canonical hexdump format,
     sending the output to the same place as nbdkit_debug(3).  For example:

      char buf[33] = "12345678123456781234567812345678";
      nbdkit_debug_hexdump (buf, 32, "data: ", 0);

     would produce output similar to this:

      data: 00000000: 31 32 33 34 35 36 37 38  31 32 33 34 35 36 37 38	|1234567812345678|
      data: 00000010: 31 32 33 34 35 36 37 38  31 32 33 34 35 36 37 38	|1234567812345678|

     An optional "prefix" may be given which prefixes the string on each line of
     output.  (This may be "NULL" or "" for no prefix).

     An optional "start" may be given which changes the first offset displayed
     in the output.

LANGUAGE BINDINGS
     (There are no language bindings of this function in the current version.)

HISTORY
     "nbdkit_debug_hexdump" was added in nbdkit 1.46.

SEE ALSO
     nbdkit(1), nbdkit_debug(3), nbdkit-plugin(3), nbdkit-filter(3), nbddump(1),
     hexdump(1).

AUTHORS
     Richard W.M. Jones

COPYRIGHT
     Copyright Red Hat

LICENSE
     Redistribution and use in source and binary forms, with or without modifi-
     cation, are permitted provided that the following conditions are met:

     *	 Redistributions of source code must retain the above copyright notice,
	 this list of conditions and the following disclaimer.

     *	 Redistributions in binary form must reproduce the above copyright no-
	 tice, this list of conditions and the following disclaimer in the docu-
	 mentation and/or other materials provided with the distribution.

     *	 Neither the name of Red Hat nor the names of its contributors may be
	 used to endorse or promote products derived from this software without
	 specific prior written permission.

     THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EX-
     PRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DIS-
     CLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DI-
     RECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SER-
     VICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABIL-
     ITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
     THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAM-
     AGE.

nbdkit-1.46.2			   2026-08-30		 nbdkit_debug_hexdump(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=nbdkit_debug_hexdump&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help