From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,4c42ac518eba0bbe X-Google-Attributes: gid109fba,public From: "Samuel T. Harris" Subject: Re: Coding for Obscurity Date: 1997/11/25 Message-ID: <347AF8AA.24226953@hso.link.com>#1/1 X-Deja-AN: 292561572 References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <64qsf0$ccc@dfw-ixnews11.ix.netcom.com> <3474BF28.2F9F@dynamite.com.au> <34741AAF.1C7@CWA.de> <65b6ns$kok$1@goanna.cs.rmit.edu.au> <347995B9.33264527@hso.link.com> Organization: Hughes Training Inc. - Houston Operations Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1997-11-25T00:00:00+00:00 List-Id: Jon S Anthony wrote: > > "Samuel T. Harris" writes: > > > reuse components. Indeed, I've used simple storage_pools simply to > > guarantee certain pointers to heterogenous types are stored in > > consecutive memory. I can then send that memory block across an > > interface and eliminate all the normal code associate with staging > > the values into a message record for sending and extracting the > > values from a received message record. > > Now that is quite nice and clever. > > -- > Jon Anthony > Synquiry Technologies, Ltd., Belmont, MA 02178, 617.484.3383 > "Nightmares - Ha! The way my life's been going lately, > Who'd notice?" -- Londo Mollari I'm glad you think so. Not being a expert at memory management techniques, this storage_pool is rather simple, does not allow deallocation, and simply allocates requested blocks in consequetive memory locations. Not very "full-featured" but for that simple job I described, it works nicely. I just can't use it for much anything else :) -- Samuel T. Harris, Senior Engineer Hughes Training, Inc. - Houston Operations 2224 Bay Area Blvd. Houston, TX 77058-2099 "If you can make it, We can fake it!"