change uint32 to int32

This commit is contained in:
Darien Raymond
2018-04-02 22:01:55 +02:00
parent 81a147e540
commit c5bd23105e
7 changed files with 16 additions and 16 deletions

View File

@@ -179,9 +179,9 @@ func New() *Buffer {
}
}
// NewSize creates and returns a buffer with 0 length and at least the given capacity.
func NewSize(size uint32) *Buffer {
// NewSize creates and returns a buffer with 0 length and at least the given capacity. Capacity must be positive.
func NewSize(capacity int32) *Buffer {
return &Buffer{
v: newBytes(size),
v: newBytes(capacity),
}
}