- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for simulate (1.86 sec)
-
src/cmd/cgo/internal/test/issue26213/jni.h
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // It's going to be hard to include a whole real JVM to test this. // So we'll simulate a really easy JVM using just the parts we need. // This is the relevant part of jni.h. // On Android NDK16, jobject is defined like this in C and C++ typedef void* jobject; typedef jobject jclass;
C - Registered: Tue Mar 26 11:13:08 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 874 bytes - Viewed (0) -
src/bytes/buffer_test.go
var bb Buffer bb.Grow(16 << 20) b.SetBytes(int64(bb.Available())) b.ReportAllocs() for i := 0; i < b.N; i++ { bb.Reset() b := bb.AvailableBuffer() b = b[:cap(b)] // use max capacity to simulate a large append operation bb.Write(b) // should be nearly infinitely fast }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 13:31:36 GMT 2024 - 18.6K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
t.EnumValues = nil t.Typedef = "" t.C.Set("%s "+dt.Qual, t1.C) return t case *dwarf.StructType: // Convert to Go struct, being careful about alignment. // Have to give it a name to simulate C "struct foo" references. tag := dt.StructName if dt.ByteSize < 0 && tag == "" { // opaque unnamed struct - should not be possible break } if tag == "" { tag = anonymousStructTag[dt]
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0) -
src/archive/tar/reader_test.go
file: "testdata/pax-nul-xattrs.tar", err: ErrHeader, }, { // BSD tar v3.1.2 rejects a PAX path with NUL in the value, while // GNU tar v1.27.1 simply truncates at first NUL. // We emulate the behavior of BSD since it is strange doing NUL // truncations since PAX records are length-prefix strings instead // of NUL-terminated C-strings. file: "testdata/pax-nul-path.tar", err: ErrHeader, }, {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
misc/ios/clangwrap.sh
# to see the available SDKs and replace iphoneos with one of them. if [ "$GOARCH" == "arm64" ]; then SDK=iphoneos PLATFORM=ios CLANGARCH="arm64" else SDK=iphonesimulator PLATFORM=ios-simulator CLANGARCH="x86_64" fi SDK_PATH=`xcrun --sdk $SDK --show-sdk-path` export IPHONEOS_DEPLOYMENT_TARGET=5.1 # cmd/cgo doesn't support llvm-gcc-4.2, so we have to use clang. CLANG=`xcrun --sdk $SDK --find clang`
Shell Script - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Dec 02 16:48:07 GMT 2021 - 626 bytes - Viewed (0) -
misc/ios/go_ios_exec.go
} } } } return values, nil } func installSimulator(appdir string) error { cmd := exec.Command( "xcrun", "simctl", "install", "booted", // Install to the booted simulator. appdir, ) if out, err := cmd.CombinedOutput(); err != nil { os.Stderr.Write(out) return fmt.Errorf("xcrun simctl install booted %q: %v", appdir, err) } return nil }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 23.4K bytes - Viewed (0)