File: addons.go

package info (click to toggle)
golang-github-ziutek-mymysql 1.5.4%2Bgit20170206.23.0582bcf-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 388 kB
  • sloc: makefile: 8; sh: 2
file content (17 lines) | stat: -rw-r--r-- 239 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package native

func NbinToNstr(nbin *[]byte) *string {
	if nbin == nil {
		return nil
	}
	str := string(*nbin)
	return &str
}

func NstrToNbin(nstr *string) *[]byte {
	if nstr == nil {
		return nil
	}
	bin := []byte(*nstr)
	return &bin
}