Skip to content

Commit

Permalink
Create Uvarint.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wjvlangz committed Mar 27, 2013
1 parent d098327 commit 4bafaf0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions encoding/binary/Uvarint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## func Uvarint(buf []byte) (uint64, int)

###参数列表

- buf 需写入的缓冲区
- x uint64类型数字

###返回值:

- int 写入字节数。
- panic buf过小。

###功能说明:

PutUvarint主要是将uint64类型放入buf中,并返回写入的字节数。如果buf过小,putUvarint将抛出panic。

###代码实例:

0 comments on commit 4bafaf0

Please sign in to comment.