🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: big endian

#4201
From: Michael Gillen
Date: Fri, 03 Mar 2006 19:18
13 lines
1039 bytes
Boba wrote:

> hallo,
> wanna ask you if there's a native/vcl utility to handle big endians?
> thanx. boba.

#define HILO(a) ((((a)>>8) & 0xff) | (((a)<<8) & 0xff00)) /* Set HI-LO order */
#define LHILO(a) ((HILO((a) & 0xffff)<<16)+HILO((a)>>16))

int dataSize = LHILO(Header->dwDataSize)

-- 
-Michael Gillen
Technical Details
Message-ID: <4408a482$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44073bf4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,218aa917182c0f21
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Michael Gillen" <michael@gillenconsultinggroup-nospam.com>
Subject: Re: big endian
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <44073bf4$1@newsgroups.borland.com>
User-Agent: XanaNews/1.17.6.6
NNTP-Posting-Host: 67.122.199.249
Message-ID: <4408a482$1@newsgroups.borland.com>
Date: 3 Mar 2006 12:18:10 -0700
X-Trace: newsgroups.borland.com 1141417090 67.122.199.249 (3 Mar 2006 12:18:10 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail