Lines Matching refs:fragment
115 fragment := make([]byte, 0, 12+fragLen)
116 fragment = append(fragment, header...)
117 fragment = append(fragment, byte(c.sendHandshakeSeq>>8), byte(c.sendHandshakeSeq))
118 fragment = append(fragment, byte(fragOffset>>16), byte(fragOffset>>8), byte(fragOffset))
119 fragment = append(fragment, byte(fragLen>>16), byte(fragLen>>8), byte(fragLen))
120 fragment = append(fragment, data[fragOffset:fragOffset+fragLen]...)
121 return fragment
150 fragment := c.makeFragment(header, data, 0, 0)
151 c.pendingFragments = append(c.pendingFragments, fragment)
163 fragment := c.makeFragment(header, data, fragOffset, fragLen)
165 fragment[0]++
168 fragment[3]++
173 c.pendingFragments = append(c.pendingFragments, fragment)
178 c.pendingFragments = append(c.pendingFragments, fragment)
190 fragment := c.makeFragment(header, data, 0, len(data))
191 c.pendingFragments = append(c.pendingFragments, fragment)
224 for _, fragment := range fragments {
226 if len(fragment) > n {
227 records = append(records, fragment[:n])
228 records = append(records, fragment[n:])
230 records = append(records, fragment)
232 …} else if i := len(records) - 1; len(records) > 0 && len(records[i])+len(fragment) <= maxRecordLen…
233 records[i] = append(records[i], fragment...)
236 records = append(records, append([]byte{}, fragment...))
384 fragment := c.hand.Next(fragLen)
411 c.handMsg = append(c.handMsg, fragment...)