Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readAllInto (0.46 sec)

  1. internal/grid/grid.go

    		internalByteBuffer.Put(&b)
    		return
    	}
    }
    
    // readAllInto reads from r and appends to b until an error or EOF and returns the data it read.
    // A successful call returns err == nil, not err == EOF. Because readAllInto is
    // defined to read from src until EOF, it does not treat an EOF from Read
    // as an error to be reported.
    func readAllInto(b []byte, r *wsutil.Reader, want int64) ([]byte, error) {
    	read := int64(0)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. 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