Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for checkXL2V1 (0.19 sec)

  1. docs/debugging/inspect/export.go

    	binary.LittleEndian.PutUint16(xlVersionCurrent[0:2], xlVersionMajor)
    	binary.LittleEndian.PutUint16(xlVersionCurrent[2:4], xlVersionMinor)
    }
    
    // checkXL2V1 will check if the metadata has correct header and is a known major version.
    // The remaining payload and versions are returned.
    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, e error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    	binary.LittleEndian.PutUint16(xlVersionCurrent[0:2], xlVersionMajor)
    	binary.LittleEndian.PutUint16(xlVersionCurrent[2:4], xlVersionMinor)
    }
    
    // checkXL2V1 will check if the metadata has correct header and is a known major version.
    // The remaining payload and versions are returned.
    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  3. cmd/xl-storage-format-v2.go

    		if s.Len() > 0 {
    			s.WriteByte(',')
    		}
    		s.WriteString("Inline")
    	}
    	return s.String()
    }
    
    // checkXL2V1 will check if the metadata has correct header and is a known major version.
    // The remaining payload and versions are returned.
    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, err error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  4. cmd/xl-storage-meta-inline.go

    }
    
    // xlMetaV2TrimData will trim any data from the metadata without unmarshalling it.
    // If any error occurs the unmodified data is returned.
    func xlMetaV2TrimData(buf []byte) []byte {
    	metaBuf, min, maj, err := checkXL2V1(buf)
    	if err != nil {
    		return buf
    	}
    	if maj == 1 && min < 1 {
    		// First version to carry data.
    		return buf
    	}
    	// Skip header
    	_, metaBuf, err = msgp.ReadBytesZC(metaBuf)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top