MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Size

Method Size

pkg/sql/sem/tree/datum.go:1308–1310  ·  view source on GitHub ↗

Size implements the Datum interface.

()

Source from the content-addressed store, hash-verified

1306
1307// Size implements the Datum interface.
1308func (d *DString) Size() uintptr {
1309 return unsafe.Sizeof(*d) + uintptr(len(*d))
1310}
1311
1312// UnsafeBytes returns the raw bytes avoiding allocation. It is "Unsafe" because
1313// the contract is that callers must not to mutate the bytes but there is

Callers

nothing calls this directly

Calls 1

SizeofMethod · 0.80

Tested by

no test coverage detected