Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for textbyte (0.17 sec)

  1. 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)
  2. android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        random.nextBytes(testBytes);
      }
    
      @Benchmark
      int hasher(int reps) {
        HashFunction hashFunction = hashFunctionEnum.getHashFunction();
        int result = 37;
        for (int i = 0; i < reps; i++) {
          result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0];
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

      private static final int RANDOM_SEED = new Random().nextInt();
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      // CRC32
    
      @Benchmark
      byte crc32HashFunction(int reps) {
        return runHashFunction(reps, Hashing.crc32());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 13 16:19:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

      private static final int RANDOM_SEED = new Random().nextInt();
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      // CRC32
    
      @Benchmark
      byte crc32HashFunction(int reps) {
        return runHashFunction(reps, Hashing.crc32());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 13 16:19:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

      private static final int RANDOM_SEED = new Random().nextInt();
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      @Benchmark
      byte hashing(int reps) {
        byte result = 0x01;
        HashMethod hashMethod = this.hashMethod;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

      private static final int RANDOM_SEED = new Random().nextInt();
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        new Random(RANDOM_SEED).nextBytes(testBytes);
      }
    
      @Benchmark
      byte hashing(int reps) {
        byte result = 0x01;
        HashMethod hashMethod = this.hashMethod;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/imports/read.go

    				} else {
    					r.syntaxError()
    				}
    				c = r.readByte()
    				continue
    			}
    		}
    		break
    	}
    	r.peek = c
    	return r.peek
    }
    
    // nextByte is like peekByte but advances beyond the returned byte.
    func (r *importReader) nextByte(skipSpace bool) byte {
    	c := r.peekByte(skipSpace)
    	r.peek = 0
    	return c
    }
    
    // readKeyword reads the given keyword from the input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/dist/imports.go

    				} else {
    					r.syntaxError()
    				}
    				c = r.readByte()
    				continue
    			}
    		}
    		break
    	}
    	r.peek = c
    	return r.peek
    }
    
    // nextByte is like peekByte but advances beyond the returned byte.
    func (r *importReader) nextByte(skipSpace bool) byte {
    	c := r.peekByte(skipSpace)
    	r.peek = 0
    	return c
    }
    
    // readKeyword reads the given keyword from the input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 21:45:30 UTC 2019
    - 6.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Tests for AbstractByteHasher.
     *
     * @author Colin Decker
     */
    public class AbstractByteHasherTest extends TestCase {
    
      public void testBytes() {
        TestHasher hasher = new TestHasher(); // byte order insignificant here
        byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
        hasher.putByte((byte) 1);
        hasher.putBytes(new byte[] {2, 3, 4, 5, 6});
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modindex/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: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
Back to top