Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for zeroKey (0.1 sec)

  1. internal/crypto/header_test.go

    	},
    }
    
    func TestSSECParse(t *testing.T) {
    	var zeroKey [32]byte
    	for i, test := range ssecParseTests {
    		key, err := SSEC.ParseHTTP(test.Header)
    		if err != test.ExpectedErr {
    			t.Errorf("Test %d: want error '%v' but got '%v'", i, test.ExpectedErr, err)
    		}
    
    		if err != nil && key != zeroKey {
    			t.Errorf("Test %d: parsing failed and client key is not zero key", i)
    		}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Jul 13 14:52:15 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  2. internal/amztime/iso8601_time.go

    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    		value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
    		// Pad necessary zeroes to full-fill the iso8601TimeFormat
    		return value + strings.Repeat("0", (len(iso8601TimeFormat)-1)-len(value)) + "Z"
    	}
    	return value
    }
    
    // ISO8601Parse parses ISO8601 date string
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jan 16 23:38:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    	}
    }
    
    func TestInvalidFiles(t *testing.T) {
    	const size = 1024 * 70 // 70kb
    	b := make([]byte, size)
    
    	// zeroes
    	_, err := NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("zeroes: error=%v, want %v", err, ErrFormat)
    	}
    
    	// repeated directoryEndSignatures
    	sig := make([]byte, 4)
    	binary.LittleEndian.PutUint32(sig, directoryEndSignature)
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  4. doc/asm.html

    <code>DATA</code> directives followed by a <code>GLOBL</code> directive.
    Each <code>DATA</code> directive initializes a section of the
    corresponding memory.
    The memory not explicitly initialized is zeroed.
    The general form of the <code>DATA</code> directive is
    
    <pre>
    DATA	symbol+offset(SB)/width, value
    </pre>
    
    <p>
    which initializes the symbol memory at the given offset and width with the given value.
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  5. src/bytes/bytes.go

    // starting with the least-significant bit of the lowest word to the
    // most-significant bit of the highest word, map to the full range of all
    // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed,
    // ensuring that any non-ASCII character will be reported as not in the set.
    // This allocates a total of 32 bytes even though the upper half
    // is unused to avoid bounds checks in asciiSet.contains.
    type asciiSet [8]uint32
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  6. doc/go_spec.html

    <p>
    The built-in function <code>clear</code> takes an argument of <a href="#Map_types">map</a>,
    <a href="#Slice_types">slice</a>, or <a href="#Type_parameter_declarations">type parameter</a> type,
    and deletes or zeroes out all elements
    [<a href="#Go_1.21">Go 1.21</a>].
    </p>
    
    <pre class="grammar">
    Call        Argument type     Result
    
    clear(m)    map[K]T           deletes all entries, resulting in an
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (1)
  7. doc/go1.17_spec.html

    for strings, and <code>nil</code> for pointers, functions, interfaces, slices, channels, and maps.
    This initialization is done recursively, so for instance each element of an
    array of structs will have its fields zeroed if no value is specified.
    </p>
    <p>
    These two simple declarations are equivalent:
    </p>
    
    <pre>
    var i int
    var i int = 0
    </pre>
    
    <p>
    After
    </p>
    
    <pre>
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top