- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for textbyte (0.2 sec)
-
src/encoding/json/encode_test.go
t.Errorf("Marshal(%q) = %#q, want %#q", tt.in, out, tt.out) } } } type jsonbyte byte func (b jsonbyte) MarshalJSON() ([]byte, error) { return tenc(`{"JB":%d}`, b) } type textbyte byte func (b textbyte) MarshalText() ([]byte, error) { return tenc(`TB:%d`, b) } type jsonint int func (i jsonint) MarshalJSON() ([]byte, error) { return tenc(`{"JI":%d}`, i) } type textint int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/stream/EncodedStream.java
throw new IOException("Unable to decode, expected 2 bytes but received only 1 byte. It seems the stream was not encoded correctly."); } return (hexToByte(byte1) << 4) | hexToByte(byte2); } public static int hexToByte(int s) throws IOException { if (s >= '0' && s <= '9') { return s - '0'; } if (s >= 'a' && s <= 'f') {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 2.9K bytes - Viewed (0) -
src/go/build/read.go
func (r *importReader) readString() { switch r.nextByte(true) { case '`': for r.err == nil { if r.nextByte(false) == '`' { break } if r.eof { r.syntaxError() } } case '"': for r.err == nil { c := r.nextByte(false) if c == '"' { break } if r.eof || c == '\n' { r.syntaxError() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
src/internal/trace/testdata/cmd/gotraceraw/main.go
fmt.Fprintf(flag.CommandLine.Output(), "\n") fmt.Fprintf(flag.CommandLine.Output(), "Supported modes:") fmt.Fprintf(flag.CommandLine.Output(), "\n") fmt.Fprintf(flag.CommandLine.Output(), "* text2bytes - converts a text format trace to bytes\n") fmt.Fprintf(flag.CommandLine.Output(), "* bytes2text - converts a byte format trace to text\n") fmt.Fprintf(flag.CommandLine.Output(), "\n") flag.PrintDefaults() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:29 UTC 2024 - 1.7K bytes - Viewed (0) -
src/bytes/buffer_test.go
var testString string // test data for write tests var testBytes []byte // test data; same as testString but as a slice. type negativeReader struct{} func (r *negativeReader) Read([]byte) (int, error) { return -1, nil } func init() { testBytes = make([]byte, N) for i := 0; i < N; i++ { testBytes[i] = 'a' + byte(i%26) } testString = string(testBytes) } // Verify that contents of buf match the string s.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:31:36 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/util/tail/tail_test.go
if err != nil { t.Fatalf("unable to create temp file") } defer os.Remove(file.Name()) line := strings.Repeat("a", blockSize) testBytes := []byte(line + "\n" + line + "\n" + line + "\n" + line + "\n" + line[blockSize/2:]) // incomplete line file.Write(testBytes) testCases := []struct { name string max int64 longerThanMax bool expected string }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
.gitignore
/subprojects/*/bin atlassian-ide-plugin.xml .metadata/ # NetBeans # -------- .nb-gradle .nb-gradle-properties # Vim # --- *.sw[nop] # Emacs # ----- *~ \#*\# .\#* # Textmate # -------- .textmate # Sublime Text # ------------ *.sublime-* # jEnv # ---- .java-version # macOS # ---- .DS_Store # HPROF # ----- *.hprof # Work dirs # ---------
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 19:23:39 UTC 2024 - 1.6K bytes - Viewed (0) -
src/crypto/tls/handshake_messages.go
b.AddUint16(suite) } }) b.AddUint8LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(m.compressionMethods) }) if len(extBytes) > 0 { b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(extBytes) }) } }) return b.Bytes() } func (m *clientHelloMsg) marshal() ([]byte, error) { return m.marshalMsg(false) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0) -
src/crypto/tls/handshake_test.go
before, _, ok := strings.Cut(line, "|") if !ok { return nil, errors.New("invalid test data") } line = before hexBytes := strings.Fields(line) for _, hexByte := range hexBytes { val, err := strconv.ParseUint(hexByte, 16, 8) if err != nil { return nil, errors.New("invalid hex byte in test data: " + err.Error()) } currentFlow = append(currentFlow, byte(val)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 24.5K bytes - Viewed (0) -
platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy
abstract boolean existsBuildCacheEntry(String key); abstract AbstractIntegrationSpec withEnabledBuildCache(); def setup() { def bytes = new byte[1024 * 1024] new Random().nextBytes(bytes) file("output.txt").bytes = bytes buildFile << """ @CacheableTask abstract class CustomTask extends DefaultTask {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 16:53:17 UTC 2024 - 12.4K bytes - Viewed (0)