Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readAllInto (0.04 sec)

  1. internal/grid/connection.go

    					return nil, err
    				}
    				continue
    			}
    			if int64(cap(dst)) < hdr.Length+1 {
    				dst = make([]byte, 0, hdr.Length+hdr.Length>>3)
    			}
    			if !hdr.Fin {
    				hdr.Length = -1
    			}
    			return readAllInto(dst[:0], &wsReader, hdr.Length)
    		}
    	}
    
    	// Keep reusing the same buffer.
    	var msg []byte
    	for atomic.LoadUint32((*uint32)(&c.state)) == StateConnected {
    		if cap(msg) > readBufferSize*4 {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 46.9K bytes
    - Viewed (0)
Back to top