start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sh'%length
start = end
s = struct.Struct(pattern)
end += s.size
data = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=length)
