@@ -31,9 +31,9 @@ import (
3131// 'out' must have space for at least len(data) bytes.
3232func decodeByteStreamSplitBatchWidth4InByteOrderDefault (data []byte , nValues , stride int , out []byte ) {
3333 const width = 4
34- debug .Assertf (len (out ) >= nValues * width , "not enough space in output buffer for decoding, out: %d bytes, data: %d bytes" , len ( out ), len ( data ) )
34+ debug .Assert (len (out ) >= nValues * width , "not enough space in output buffer for decoding" )
3535 // the beginning of the data slice can be truncated, but for valid encoding we need at least (width-1)*stride+nValues bytes
36- debug .Assertf (len (data ) >= 3 * stride + nValues , "not enough data for decoding, data: %d bytes, expected at least: %d bytes" , len ( data ), 3 * stride + nValues )
36+ debug .Assert (len (data ) >= 3 * stride + nValues , "not enough data for decoding" )
3737 s0 := data [:nValues ]
3838 s1 := data [stride : stride + nValues ]
3939 s2 := data [2 * stride : 2 * stride + nValues ]
@@ -52,8 +52,8 @@ func decodeByteStreamSplitBatchWidth4InByteOrderDefault(data []byte, nValues, st
5252// 'out' must have space for at least len(data) bytes.
5353func decodeByteStreamSplitBatchWidth8InByteOrderDefault (data []byte , nValues , stride int , out []byte ) {
5454 const width = 8
55- debug .Assertf (len (out ) >= nValues * width , "not enough space in output buffer for decoding, out: %d bytes, data: %d bytes" , len ( out ), len ( data ) )
56- debug .Assertf (len (data ) >= 7 * stride + nValues , "not enough data for decoding, data: %d bytes, expected at least: %d bytes" , len ( data ), 7 * stride + nValues )
55+ debug .Assert (len (out ) >= nValues * width , "not enough space in output buffer for decoding" )
56+ debug .Assert (len (data ) >= 7 * stride + nValues , "not enough data for decoding" )
5757 s0 := data [:nValues ]
5858 s1 := data [stride : stride + nValues ]
5959 s2 := data [2 * stride : 2 * stride + nValues ]
0 commit comments