cstr

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString converts bytes to string assuming it is a C string

func StringToCStrBytes

func StringToCStrBytes(str string) []byte

StringToCStrBytes turns the string into a null terminated byte slice

func ToString

func ToString(cstr string) string

ToString trims the string at the first null byte which is used in C to indicate the end of the string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL