public void CallSerialize(int value) { if (value >= 0) { CallSerialize((uint)value); } else { CharStream.WriteNegative(11); CallSerialize((uint)-value); } }
public void CallSerialize(short value) { if (value >= 0) { CallSerialize((ushort)value); } else { CharStream.WriteNegative(7); CallSerialize((ushort)-value); } }
public void CallSerialize(long value) { if (value >= 0) { CallSerialize((ulong)value); } else if ((ulong)(value + MaxInteger) <= (ulong)(MaxInteger << 1) || !Config.IsMaxNumberToString) { CharStream.WriteNegative(19); CallSerialize((ulong)-value); } else { CharStream.WriteJsonString(value); } }