Exemple #1
0
 //Encode Int32
 private void writeInt32(byte[] buffer, ref int offset, IJsonNode value)
 {
     // offset = writeBytes(buffer, offset, Encoder.encodeSInt32(value.ToString()));
     offset = writeBytes(buffer, offset, Encoder.encodeSInt32(value.AsInt()));
 }
Exemple #2
0
 ////Encode UInt32.
 private void writeUInt32(byte[] buffer, ref int offset, IJsonNode value)
 {
     offset = writeBytes(buffer, offset, Encoder.encodeUInt32((uint)value.AsInt()));
 }