Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readLSB (0.15 sec)

  1. src/compress/lzw/reader.go

    	output [2 * 1 << maxWidth]byte
    	o      int    // write index into output
    	toRead []byte // bytes to return from Read
    }
    
    // readLSB returns the next code for "Least Significant Bits first" data.
    func (r *Reader) readLSB() (uint16, error) {
    	for r.nBits < r.width {
    		x, err := r.r.ReadByte()
    		if err != nil {
    			return 0, err
    		}
    		r.bits |= uint32(x) << r.nBits
    		r.nBits += 8
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:39 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top