There's no direct equivalent in CF; there isn't even a direct
equivalent in Java (as far as I can see). It seems you'll have to
write one - perhaps crack open the source for that function in PHP (or
the original form in Perl).

On 9/27/07, Daniel Smith <[EMAIL PROTECTED]> wrote:
> In PHP there is a function called pack() "http://us3.php.net/pack";. The 
> function will pack data into a binary string. I assumed that this would be 
> done using CF's CharsetEncode(), but the result was not as I expected.
>
> I am specifically trying to call "pack('N',foo)", which will encode as 
> unsigned long (always 32 bit, big endian byte order).
>
> I have spent the 3hrs looking for an answer and came up dry. Any help would 
> be much appreciated. Thanks.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289585
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to