[sane-devel] Calculating maxlen

Paul paul@all-the-johnsons.co.uk
Sun, 19 Sep 2004 20:38:42 +0100


--=-EyBgZc7L2eK+2KbXNi9a
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

Just a small one here.

I'm using sane_read. handle is fine, but I need to pass a buffer the
size of maxlen for *data. How do I work out maxlen? Is it simply the
bytes per line * pixels per line or is it found from sane_get_parameters
(SANE_Params *params->size)?

TTFN

Paul
--=20
Homer: Donut?=20
Lisa: No, thanks. Do you have any fruit?=20
Homer: This has purple stuff inside. Purple is a fruit.

--=-EyBgZc7L2eK+2KbXNi9a
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBTeBBusSVe5EZv3wRAlnwAJ9qLZVZYGqE56DYOdyJG9YgNVYIgQCdHVSK
ZUchrle5CKU2yI8TRJNy8KQ=
=37Y5
-----END PGP SIGNATURE-----

--=-EyBgZc7L2eK+2KbXNi9a--