Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for expand (0.16 sec)

  1. cmd/xl-storage-format-v2.go

    		has := int64(len(buf))
    		if has >= n {
    			return nil
    		}
    		if hasFull || n > size {
    			return io.ErrUnexpectedEOF
    		}
    		extra := n - has
    		if int64(cap(buf)) >= n {
    			// Extend since we have enough space.
    			buf = buf[:n]
    		} else {
    			buf = append(buf, make([]byte, extra)...)
    		}
    		_, err := io.ReadFull(r, buf[has:])
    		if err != nil {
    			if errors.Is(err, io.EOF) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top