Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for dash (0.14 sec)

  1. misc/go_android_exec/main.go

    	}
    
    	// In case we're booting a device or emulator alongside all.bash, wait for
    	// it to be ready. adb wait-for-device is not enough, we have to
    	// wait for sys.boot_completed.
    	if err := adb("wait-for-device", "exec-out", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"); err != nil {
    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. docs/debugging/s3-verify/main.go

    			continue
    		}
    
    		fmt.Printf("only in target: %s\n", tgtCtnt.Key)
    		tgtCtnt, tgtOk = nextObject(tgtCh)
    	}
    }
    
    func verifyChecksum(sclnt *minio.Client, srcSha256, tgtSha256 hash.Hash, srcCtnt, tgtCtnt minio.ObjectInfo) (allgood bool) {
    	opts := minio.GetObjectOptions{}
    	if srcCtnt.Size != tgtCtnt.Size {
    		fmt.Printf("differ in size sourceSize: %d, targetSize: %d\n", srcCtnt.Size, tgtCtnt.Size)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  3. docs/debugging/hash-set/main.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main
    
    import (
    	"bufio"
    	"bytes"
    	"encoding/binary"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"log"
    	"os"
    	"strings"
    
    	"github.com/dchest/siphash"
    	"github.com/google/uuid"
    )
    
    // hashes the key returning an integer based on the input algorithm.
    // This function currently supports
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. docs/debugging/s3-check-md5/main.go

    	versions                       bool
    	insecure                       bool
    )
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    func main() {
    	flag.StringVar(&endpoint, "endpoint", "https://play.min.io", "S3 endpoint URL")
    	flag.StringVar(&accessKey, "access-key", "Q3AM3UQ867SPQQA43P2F", "S3 Access Key")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    				return fmt.Errorf("size mismatch. Meta size: %d", ei.V2Obj.Size)
    			}
    		} else {
    			return err
    		}
    		if len(b) < 32 {
    			return fmt.Errorf("file %s too short", file)
    		}
    		// Trim hash. Fine for inline data, since only one block.
    		b = b[32:]
    
    		set := parityData[data]
    		if set == nil {
    			set = make(map[int][]byte)
    		}
    		set[idx] = b
    		parityData[data] = set
    
    		// Combine
    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)
Back to top