🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9382

Re: Big, Little and Bi endians

#9382
From: Andrue Cope [TeamB]
Date: Fri, 09 Jul 2004 11:03
51 lines
2489 bytes
john blackburn wrote:

> That's interesting, it doesn't get rid of the need to be aware of
> each field but should make life somewhat easier.

Yeah that is a nuisance. We have to address this a lot since we support
many different file systems (some like Unix variants can be either way
round). It'd be really nice to have some function that we could just
point at a POD structure and have it convert what needs to be
converted. Everything does get converted as soon as we get hold of it
but consider:

struct TBSD_SuperBlock
{
  BYTE  Unknown1[ 8 ];
  DWORD Always16,
        Always24,
        AlwaysZero,
        VirtCylinderGroupSize,
        GroupSizeFrig,
        GroupFrigFactorMask,
        DateTime,
        TotalBlockCount,
        CountOfUsableAllocBlocks,
        CountOfVolumeGroups,
        Unknown5,
        AllocationBlockSize,
        ClumpLengthInAllocBlocks;
  BYTE  Unknown6[ 40 ];
  DWORD AllocBlockToDiskBlockShift;
  BYTE  Unknown7[ 48 ];
  DWORD VirtCylinderGroupSizeAgain,
        Unknown8,
        Unknown9,
        NumberOfHeads,
        NumberOfSectorsPerTrack,
        SizeOfCylinderInSectors,
        Unknown10,
        CountOfCylindersPerGroup,
        NumberOfINodesInIListRun,
        BlocksPerGroup;
  BYTE  Unknown11[ 20 ];
  char  MountPoint[ 300 ];
};

Lol. Probably someone will now provide an automatic way to convert this
but it's way too late. This header is dated 1994.
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <40ee7b6f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40ee62ed$1@newsgroups.borland.com> <u1sse0t3kjlaedjkiifjg3ffjf8anhuhb7@4ax.com> <40ee7479@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e4fd0ef684fef580
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@spammy.com>
Subject: Re: Big, Little and Bi endians
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40ee62ed$1@newsgroups.borland.com> <u1sse0t3kjlaedjkiifjg3ffjf8anhuhb7@4ax.com> <40ee7479@newsgroups.borland.com>
User-Agent: XanaNews/1.16.3.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <40ee7b6f$1@newsgroups.borland.com>
Date: 9 Jul 2004 04:03:11 -0700
X-Trace: newsgroups.borland.com 1089370991 217.207.223.34 (9 Jul 2004 04:03:11 -0700)
Lines: 51
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail