Exemple #1
0
        public static unsafe void AppendPrimitive(this StringBuilder stringBuilder, int value)
        {
            char *buffer = stackalloc char[12];

            var count = CharConverter.IntToUnicode(value, buffer, 12, 0);

            stringBuilder.Append(buffer, count);
        }
Exemple #2
0
 public void WriteInt(int i)
 {
     this.Reserve(11);
     this.usagebound += CharConverter.IntToUnicode(i, this.buffer, this.usagebound);
 }
Exemple #3
0
 public void WriteShort(short s)
 {
     this.Reserve(6);
     this.usagebound += CharConverter.IntToUnicode(s, this.buffer, this.usagebound);
 }
Exemple #4
0
 public void WriteSByte(sbyte sb)
 {
     this.Reserve(4);
     this.usagebound += CharConverter.IntToUnicode(sb, this.buffer, this.usagebound);
 }