Article View: comp.unix.programmer
Article #839Re: File pointer to a memory location?
From: Conor P. Cahill
Date: Tue, 11 Sep 1990 00:13
Date: Tue, 11 Sep 1990 00:13
22 lines
1406 bytes
1406 bytes
In article <119609@linus.mitre.org> rtidd@ccels3.mitre.org (Randy Tidd) writes:
>What I do now is query the database, get a block of memory, dump this
>memory to a temporary file, open the file with a file pointer, and
>pass the file pointer to the image processing routines. Not only is
>this dumb, but images can be a big as 3 megs and this is incredibly
>inefficient.
>
>Can anyone help me out?
1. best solution is to change your routines to accept a pointer to a memory
area that has the image data
or
2. use the pipe like you had intended and on the recieving side (the read
side of the pipe file descriptor pair) use fdopen() to assign a file
pointer to the file descriptor.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
Technical Details
Message-ID:
<1990Sep11.001358.9066@virtech.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bellcore!bellcore-2!rutgers!cbmvax!uunet!virtech!cpcahilReferences:
<119609@linus.mitre.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bellcore!bellcore-2!rutgers!cbmvax!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.programmer Subject: Re: File pointer to a memory location? Message-ID: <1990Sep11.001358.9066@virtech.uucp> Date: 11 Sep 90 00:13:58 GMT References: <119609@linus.mitre.org> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 22