comp.lang.ada
 help / color / mirror / Atom feed
From: ejijott@gmail.com
Subject: Re: Sequental IO and pointers
Date: 27 Nov 2005 10:10:13 -0800
Date: 2005-11-27T10:10:13-08:00	[thread overview]
Message-ID: <1133115013.277922.147010@g14g2000cwa.googlegroups.com> (raw)
In-Reply-To: <uek52mbn6.fsf@acm.org>

Snippet of my (current) Load procedure:

>
    procedure Load(S: in out Storage; File: String) is
        package StorageIO is new Sequential_IO(Node);
        use StorageIO;
        fh_storage:StorageIO.File_type;
        import_node:Node;
    begin
        Open(fh_storage, Name=>file, Mode=>In_file);
        Read(fh_storage, import_node);
        S.next:=import_node;
        Close(fh_storage);
    end Load;
<

Would using Direct_IO be a better/other solution to use? What I
understand of that package is that you get indexing features to use.

> You don't need another type, just modify Save to not output the
> pointer.

How would I go about doing that, using a Node/Storage type for output?
Doesnt Write put the whole shebang into my binary file?




  reply	other threads:[~2005-11-27 18:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-27  1:17 Sequental IO and pointers ejijott
2005-11-27  1:19 ` ejijott
2005-11-27 14:02 ` Stephen Leake
2005-11-27 18:10   ` ejijott [this message]
2005-11-27 18:54     ` ejijott
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox