MCPcopy
hub / github.com/openacid/slim / NewI16

Function NewI16

array/int.go:139–146  ·  view source on GitHub ↗

NewI16 creates a I16 Since 0.2.0

(index []int32, elts []int16)

Source from the content-addressed store, hash-verified

137//
138// Since 0.2.0
139func NewI16(index []int32, elts []int16) (a *I16, err error) {
140 a = &I16{}
141 err = a.Init(index, elts)
142 if err != nil {
143 a = nil
144 }
145 return a, err
146}
147
148// Get returns value at "idx" and a bool indicating if the value is
149// found.

Callers 6

TestI16NewErrorArgmentsFunction · 0.92
TestI16NewFunction · 0.92
TestI16GetFunction · 0.92
TestI16EncodeDecodeFunction · 0.92
TestI16EncodeDecodeBigFunction · 0.92
BenchmarkI16GetFunction · 0.92

Calls 1

InitMethod · 0.45

Tested by 6

TestI16NewErrorArgmentsFunction · 0.74
TestI16NewFunction · 0.74
TestI16GetFunction · 0.74
TestI16EncodeDecodeFunction · 0.74
TestI16EncodeDecodeBigFunction · 0.74
BenchmarkI16GetFunction · 0.74