Int32Slice reads an int32 slice.
()
| 236 | |
| 237 | // Int32Slice reads an int32 slice. |
| 238 | func (reader *Reader) Int32Slice() []int32 { |
| 239 | count := reader.VariableUint() |
| 240 | vals := make([]int32, count) |
| 241 | for i := uint64(0); i < count; i++ { |
| 242 | vals[i] = reader.Int32() |
| 243 | } |
| 244 | return vals |
| 245 | } |
| 246 | |
| 247 | // Int64Slice reads an int64 slice. |
| 248 | func (reader *Reader) Int64Slice() []int64 { |