- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 149 for byte (0.05 sec)
-
cmd/bucket-lifecycle-handlers_test.go
} if testCase.shouldPass && !bytes.Equal(testCase.lifecycleResponse, rec.Body.Bytes()) { t.Errorf("Test %d: %s: Expected the response to be `%s`, but instead found `%s`", i+1, instanceType, string(testCase.lifecycleResponse), rec.Body.String()) } errorResponse := APIErrorResponse{} err = xml.Unmarshal(rec.Body.Bytes(), &errorResponse) if err != nil && !testCase.shouldPass {
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-10 15:50 - 11.3K bytes - Viewed (0) -
src/os/user/cgo_lookup_unix.go
return lookupUnixUid(syscall.Getuid()) } func lookupUser(username string) (*User, error) { var pwd _C_struct_passwd var found bool nameC := make([]byte, len(username)+1) copy(nameC, username) err := retryWithBuffer(userBuffer, func(buf []byte) syscall.Errno { var errno syscall.Errno pwd, found, errno = _C_getpwnam_r((*_C_char)(unsafe.Pointer(&nameC[0])), (*_C_char)(unsafe.Pointer(&buf[0])), _C_size_t(len(buf)))
Registered: 2024-06-12 16:32 - Last Modified: 2024-06-11 17:08 - 5.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java
TRANSFORMED(new byte[0]), // Not transformed marker resource is a 1-byte file with a single "N" symbol. NOT_TRANSFORMED(new byte[]{'N'}); public static final String RESOURCE_NAME = TransformReplacer.class.getName() + ".transformed"; @SuppressWarnings("ImmutableEnumChecker") private final byte[] markerBody; MarkerResource(byte[] markerBody) {
Registered: 2024-06-12 18:38 - Last Modified: 2024-06-11 09:51 - 12.7K bytes - Viewed (0) -
maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java
assertEquals("0.1 kB", format.format(_50_bytes, ScaleUnit.KILOBYTE)); assertEquals("0 MB", format.format(_50_bytes, ScaleUnit.MEGABYTE)); assertEquals("0 GB", format.format(_50_bytes, ScaleUnit.GIGABYTE)); long _999_bytes = 999L; assertEquals("999 B", format.format(_999_bytes)); assertEquals("999 B", format.format(_999_bytes, ScaleUnit.BYTE));
Registered: 2024-06-12 09:55 - Last Modified: 2024-06-11 21:48 - 13K bytes - Viewed (0) -
cmd/storage-datatypes_gen.go
} // MarshalMsg implements msgp.Marshaler func (z BaseOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 0 _ = z o = append(o, 0x80) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *BaseOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-10 15:51 - 130.6K bytes - Viewed (0) -
cmd/storage-rest-server.go
// concurrently, check for it before we // write the filler byte. select { case err := <-doneCh: if err != nil { write([]byte{1}) write([]byte(err.Error())) } else { write([]byte{0}) } return default: } // Response not ready, write a filler byte. write([]byte{32}) if canWrite { w.(http.Flusher).Flush() }
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-10 15:51 - 44.8K bytes - Viewed (0) -
cmd/encryption-v1.go
func metadataEncrypter(key crypto.ObjectKey) objectMetaEncryptFn { return func(baseKey string, data []byte) []byte { if len(data) == 0 { return data } var buffer bytes.Buffer mac := hmac.New(sha256.New, key[:]) mac.Write([]byte(baseKey)) if _, err := sio.Encrypt(&buffer, bytes.NewReader(data), sio.Config{Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}); err != nil {
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-13 06:56 - 37.1K bytes - Viewed (0) -
cmd/object-api-utils.go
} func sealETag(encKey crypto.ObjectKey, md5CurrSum []byte) []byte { var emptyKey [32]byte if bytes.Equal(encKey[:], emptyKey[:]) { return md5CurrSum } return encKey.SealETag(md5CurrSum) } func sealETagFn(key crypto.ObjectKey) SealMD5CurrFn { fn := func(md5sumcurr []byte) []byte { return sealETag(key, md5sumcurr) } return fn }
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-11 03:13 - 36.3K bytes - Viewed (0) -
cmd/object-api-datatypes_gen.go
"github.com/tinylib/msgp/msgp" ) // MarshalMsg implements msgp.Marshaler func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendInt(o, int(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *BackendType) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 int zb0001, bts, err = msgp.ReadIntBytes(bts) if err != nil {
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-10 15:31 - 70.1K bytes - Viewed (0) -
cmd/test-utils_test.go
stringToSign += getSHA256Hash([]byte(canonicalRequest)) date := sumHMAC([]byte("AWS4"+secretKey), []byte(currTime.Format(yyyymmdd))) region := sumHMAC(date, []byte(globalMinioDefaultRegion)) service := sumHMAC(region, []byte(string(serviceS3))) signingKey := sumHMAC(service, []byte("aws4_request")) signature := hex.EncodeToString(sumHMAC(signingKey, []byte(stringToSign))) // final Authorization header
Registered: 2024-06-16 00:44 - Last Modified: 2024-06-10 15:50 - 76.9K bytes - Viewed (0)