Mercurial > emacs
comparison lisp/emacs-lisp/bindat.el @ 70858:c77bf4eed67a
(bindat-pack): Doc fix.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Tue, 23 May 2006 11:21:59 +0000 |
parents | 993df0652ff7 |
children | 6d78b8af6fc8 |
comparison
equal
deleted
inserted
replaced
70857:d2542ee8a5c9 | 70858:c77bf4eed67a |
---|---|
579 (bindat--pack-item last type len) | 579 (bindat--pack-item last type len) |
580 )))))) | 580 )))))) |
581 | 581 |
582 (defun bindat-pack (spec struct &optional raw-data pos) | 582 (defun bindat-pack (spec struct &optional raw-data pos) |
583 "Return binary data packed according to SPEC for structured data STRUCT. | 583 "Return binary data packed according to SPEC for structured data STRUCT. |
584 Optional third arg RAW-DATA is a pre-allocated string or vector to unpack into. | 584 Optional third arg RAW-DATA is a pre-allocated string or vector to pack into. |
585 Optional fourth arg POS is the starting offset into RAW-DATA. | 585 Optional fourth arg POS is the starting offset into RAW-DATA. |
586 Note: The result is a multibyte string; use `string-make-unibyte' on it | 586 Note: The result is a multibyte string; use `string-make-unibyte' on it |
587 to make it unibyte if necessary." | 587 to make it unibyte if necessary." |
588 (let ((no-return raw-data)) | 588 (let ((no-return raw-data)) |
589 (unless pos (setq pos 0)) | 589 (unless pos (setq pos 0)) |