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); }
public void WriteInt(int i) { this.Reserve(11); this.usagebound += CharConverter.IntToUnicode(i, this.buffer, this.usagebound); }
public void WriteShort(short s) { this.Reserve(6); this.usagebound += CharConverter.IntToUnicode(s, this.buffer, this.usagebound); }
public void WriteSByte(sbyte sb) { this.Reserve(4); this.usagebound += CharConverter.IntToUnicode(sb, this.buffer, this.usagebound); }