Int16Slice reads an int16 slice.
()
| 226 | |
| 227 | // Int16Slice reads an int16 slice. |
| 228 | func (reader *Reader) Int16Slice() []int16 { |
| 229 | count := reader.VariableUint() |
| 230 | vals := make([]int16, count) |
| 231 | for i := uint64(0); i < count; i++ { |
| 232 | vals[i] = reader.Int16() |
| 233 | } |
| 234 | return vals |
| 235 | } |
| 236 | |
| 237 | // Int32Slice reads an int32 slice. |
| 238 | func (reader *Reader) Int32Slice() []int32 { |