all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs Lisp - Reading a sequence of bytes as one integer
@ 2010-03-13 16:56 Jeff Clough
  2010-03-13 17:15 ` Teemu Likonen
  2010-03-13 18:49 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Clough @ 2010-03-13 16:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hey now,

I'm stumbling through a project with elisp (mostly as an excuse to use
it again) and I'm stuck on something.

I have a (mostly) binary file I want to inspect.  There are several
places in this file where I want to read a series of bytes (in this
case, three consecutive bytes) and treat those bytes as a single
integer.  I can grab them as a buffer-substring obviously, but I'm at
a loss for how to make that into the integer I need, nor can I find
anything obvious that would be easier.

This is probably something ridiculously simple and clearly explained
somewhere, but I'm already going cross-eyed and my Google is failing
me.

Thanks for any help you can give.

Jeff





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-14  8:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13 16:56 Emacs Lisp - Reading a sequence of bytes as one integer Jeff Clough
2010-03-13 17:15 ` Teemu Likonen
2010-03-13 18:10   ` Jeff Clough
2010-03-13 19:10     ` Jeff Clough
2010-03-14  8:03       ` Andreas Politz
2010-03-13 19:42     ` Teemu Likonen
2010-03-13 18:49 ` Eli Zaretskii
2010-03-13 19:12   ` Jeff Clough

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.