]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: returns length of bool slice in intDataSize
authorJoe Kyo <xunianzu@gmail.com>
Tue, 8 May 2018 13:00:36 +0000 (21:00 +0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 May 2018 14:48:50 +0000 (14:48 +0000)
commit5188b4dea0614a15caa729d3c3153e1128e55f80
tree734fe75e98db1afdd961b024d23c5c50f3c136a6
parent6428c892c04831fda8529973b7031caf60768866
encoding/binary: returns length of bool slice in intDataSize

intDataSize should return length of bool slice, so functions
Read and Write can use the fast path to process bool slice.

Change-Id: I8cd275e3ffea82024850662d86caca64bd91bf70
Reviewed-on: https://go-review.googlesource.com/112135
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/encoding/binary/binary.go