Re: Virtual Earth - Encoding for performance - new article
Hello,
I tried to translate the code from c# to VB.NET and I got some errors.
///
/// Encode an unsigned number in the encode format.
///
/// the unsigned number
/// the encoded string
private static string encodeNumber(int num)
{
StringBuilder encodeString = new StringBuilder();
while (num >= 0x20)
{
//while another chunk follows
encodeString.Append((char)((0x20 | (num & 0x1f)) + minASCII));
//OR value with 0x20, convert to decimal and add 63
num >>= binaryChunkSize; //shift to next chunk
}
encodeString.Append((char)(num + minASCII));
return encodeString.ToString();
}
Is there someone who can translate this function to VB.NET, I don't know what type of variables are "binaryChunkSize" and "minASCII".
Thanks a lot for help
Dirk
By Dirk on
Tuesday, 15 May 2007