How safe is this?

Ron Teitelbaum Ron at USMedRec.com
Mon Jun 5 18:49:40 UTC 2006


Hello all,

 

Can you tell me if this is safe for all platforms?

 

self asByteArray asString asByteArray asInteger = self   ->   true

 

I have a largePositiveInteger that needs to be sent on the wire.  I'm trying
to convert to save space the number is 256 bits.

 

The resulting string which is going out is 32bytes which seems to me to be
the best that can be done storage wise, will I have any trouble on different
platforms when I grab the string and do asByteArray asInteger?

 

Is there a better way to store the number?

 

Thanks,

 

Ron Teitelbaum

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060605/74fb1db6/attachment.htm


More information about the Squeak-dev mailing list