1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

write object

This commit is contained in:
Tao Wen
2017-01-07 22:08:45 +08:00
parent 5e50b3e11c
commit 21549b9fd8
4 changed files with 113 additions and 6 deletions

View File

@ -421,4 +421,12 @@ func (stream *Stream) writeUint64SlowPath(val uint64) {
}
}
stream.Write(temp[charPos:])
}
func (stream *Stream) WriteInt(val int) {
stream.WriteInt64(int64(val))
}
func (stream *Stream) WriteUint(val uint) {
stream.WriteUint64(uint64(val))
}