Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ByteSliceFromString (0.15 sec)

  1. src/syscall/syscall.go

    // If s contains a NUL byte this function panics instead of
    // returning an error.
    //
    // Deprecated: Use ByteSliceFromString instead.
    func StringByteSlice(s string) []byte {
    	a, err := ByteSliceFromString(s)
    	if err != nil {
    		panic("syscall: string with NUL passed to StringByteSlice")
    	}
    	return a
    }
    
    // ByteSliceFromString returns a NUL-terminated slice of bytes
    // containing the text of s. If s contains a NUL byte at any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top