Emacs: Binary File Viewer

Quick visualization tool for Binary data using C header definition. Semantic parses the C header file and generates a type definition. The type definition is passed to bindat-unpack along with the binary data. The result is displayed using speedbar . ;; Note: The command works on the binary data in the current buffer. M-x hexl-form (hexl-form) The image shows the example included in the commentary section of bindat.el . Conversions (format "%02X" 255) ;; => "FF" (string-to-number "FF" 16) ;; => 255 ;; Little endian unpacking (let* ((bindat-raw [1 2 3 4 5 6 7 8]) (bindat-idx 0)) (bindat--unpack-u64r)) ;; Little endian packing (let* ((bindat-raw [0 0 0 0 0 0 0 0]) (bindat-idx 0)) (bindat--pack-u64r #x0102030405060708) bindat-raw) Insert Binary Data Emacs creates a multibyte buffer ...