Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for skipUint16 (0.08 sec)

  1. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    func unpackUint16(msg []byte, off int) (uint16, int, error) {
    	if off+uint16Len > len(msg) {
    		return 0, off, errBaseLen
    	}
    	return uint16(msg[off])<<8 | uint16(msg[off+1]), off + uint16Len, nil
    }
    
    func skipUint16(msg []byte, off int) (int, error) {
    	if off+uint16Len > len(msg) {
    		return off, errBaseLen
    	}
    	return off + uint16Len, nil
    }
    
    // packType appends the wire format of field to msg.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
Back to top