Size implements the Datum interface.
()
| 1306 | |
| 1307 | // Size implements the Datum interface. |
| 1308 | func (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 |