- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for RawBytes (0.24 sec)
-
src/database/sql/convert_test.go
// To RawBytes {s: nil, d: &scanraw, wantraw: nil}, {s: []byte("byteslice"), d: &scanraw, wantraw: RawBytes("byteslice")}, {s: "string", d: &scanraw, wantraw: RawBytes("string")}, {s: 123, d: &scanraw, wantraw: RawBytes("123")}, {s: int8(123), d: &scanraw, wantraw: RawBytes("123")}, {s: int64(123), d: &scanraw, wantraw: RawBytes("123")},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 20:23:22 UTC 2024 - 17K bytes - Viewed (0) -
src/database/sql/convert.go
case *string: if d == nil { return errNilPtr } *d = s return nil case *[]byte: if d == nil { return errNilPtr } *d = []byte(s) return nil case *RawBytes: if d == nil { return errNilPtr } *d = rows.setrawbuf(append(rows.rawbuf(), s...)) return nil } case []byte: switch d := dest.(type) { case *string: if d == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 16.2K bytes - Viewed (0) -
src/database/sql/sql.go
} return rs.raw } // setrawbuf updates the RawBytes buffer with the result of appending a new value to it. // It returns the new value. func (rs *Rows) setrawbuf(b []byte) RawBytes { if rs == nil { // convertAssignRows can take a nil *Rows; for simplicity handle it here return RawBytes(b) } off := len(rs.raw) rs.raw = b return RawBytes(rs.raw[off:]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 103.6K bytes - Viewed (0) -
scan.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 47.1K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 47.1K bytes - Viewed (0) -
src/database/sql/sql_test.go
// Issue #65201. // // If a RawBytes is reused across multiple queries, // subsequent queries shouldn't overwrite driver-owned memory from previous queries. func TestRawBytesReuse(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) if _, err := db.Exec("USE_RAWBYTES"); err != nil { t.Fatal(err) } var raw RawBytes // The RawBytes in this query aliases driver-owned memory.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 111.6K bytes - Viewed (0)