Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AsCanonicalBase1024Bytes (0.32 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    	}
    	return strconv.AppendInt(out, amount, 10), exponent
    }
    
    // AsCanonicalBase1024Bytes accepts a buffer to write the base-1024 string value of this field to, and returns
    // either that buffer or a larger buffer and the current exponent of the value. 2048 is 2 * 1024 ^ 1 and would
    // return []byte("2048"), 1.
    func (a int64Amount) AsCanonicalBase1024Bytes(out []byte) (result []byte, exponent int32) {
    	value, ok := a.AsScaledInt64(0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	AsCanonicalBytes(out []byte) ([]byte, int32)
    	// AsCanonicalBase1024Bytes returns a byte array representing the string representation
    	// of the value mantissa and an int32 representing its exponent in base-1024. Callers
    	// may pass a byte slice to the method to avoid allocations.
    	AsCanonicalBase1024Bytes(out []byte) ([]byte, int32)
    }
    
    // Format lists the three possible formattings of a quantity.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top