Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for decBoolSlice (0.14 sec)

  1. src/encoding/gob/dec_helpers.go

    }
    
    func decBoolArray(state *decoderState, v reflect.Value, length int, ovfl error) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return decBoolSlice(state, v.Slice(0, v.Len()), length, ovfl)
    }
    
    func decBoolSlice(state *decoderState, v reflect.Value, length int, ovfl error) bool {
    	slice, ok := v.Interface().([]bool)
    	if !ok {
    		// It is kind bool but not type bool. TODO: We can handle this unsafely.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top