Documentation ¶
Overview ¶
Package noarch contains low-level functions that apply to multiple platforms.
Index ¶
- func Atoi(a []byte) int
- func BoolToInt(x bool) int
- func Fclose(f *File) int
- func Feof(f *File) int
- func Fflush(f *File) int
- func Fgetc(f *File) int
- func Fgetpos(f *File, pos *int) int
- func Fgets(dest []byte, num int, f *File) []byte
- func Fprintf(f *File, format []byte, args ...interface{}) int
- func Fputc(c int, f *File) int
- func Fputs(content []byte, f *File) int
- func Fread(buffer *[]byte, size1, size2 int, f *File) int
- func Free(anything interface{})
- func Fscanf(f *File, format []byte, args ...interface{}) int
- func Fseek(f *File, offset int32, origin int) int
- func Fsetpos(f *File, pos *int) int
- func Ftell(f *File) int32
- func Fwrite(buffer []byte, size1, size2 int, f *File) int
- func Getchar() int
- func NotInt(x int) int
- func NotUint16(x uint16) uint16
- func NullTerminatedByteSlice(s []byte) string
- func Printf(format []byte, args ...interface{}) int
- func Puts(s []byte) int
- func Remove(filePath []byte) int
- func Rename(from, to []byte) int
- func Rewind(f *File)
- func Scanf(format []byte, args ...interface{}) int
- func Strlen(a []byte) int
- func Strtol(a, b []byte, c int) int32
- func Ternary(a bool, b, c func() interface{}) interface{}
- func Tmpnam(buffer []byte) []byte
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Free ¶ added in v0.12.0
func Free(anything interface{})
Free doesn't do anything since memory is managed by the Go garbage collector. However, I will leave it here as a placeholder for now.
func NullTerminatedByteSlice ¶ added in v0.11.0
NullTerminatedByteSlice returns a string that contains all the bytes in the provided C string up until the first NULL character.
Types ¶
type File ¶ added in v0.11.0
type File struct { // This is not part of the original struct but it is needed for internal // calls in Go. OsFile *os.File }
This definition has been translated from the original definition for __sFILE, which is an alias for FILE. Not all of the attributes have been translated. They should be turned on as needed.
Click to show internal directories.
Click to hide internal directories.