Beispiel #1
0
 private static void AppendShort(StringBuilder builder, short value)
 {
     builder.Append(JSImplGuid.ToHex(value >> 12 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 8 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 4 & 15));
     builder.Append(JSImplGuid.ToHex((int)(value & 15)));
 }
Beispiel #2
0
 private static void AppendInt(StringBuilder builder, int value)
 {
     builder.Append(JSImplGuid.ToHex(value >> 28 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 24 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 20 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 16 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 12 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 8 & 15));
     builder.Append(JSImplGuid.ToHex(value >> 4 & 15));
     builder.Append(JSImplGuid.ToHex(value & 15));
 }
Beispiel #3
0
 //
 // Static Methods
 //
 private static void AppendByte(StringBuilder builder, byte value)
 {
     builder.Append(JSImplGuid.ToHex(value >> 4 & 15));
     builder.Append(JSImplGuid.ToHex((int)(value & 15)));
 }