noarch

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package noarch contains low-level functions that apply to multiple platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(a []byte) int

func BoolToInt

func BoolToInt(x bool) int

func CStringIsNull

func CStringIsNull(s []byte) bool

func Fclose

func Fclose(f *File) int

func Feof

func Feof(f *File) int

func Fflush

func Fflush(f *File) int

func Fgetc

func Fgetc(f *File) int

func Fgetpos

func Fgetpos(f *File, pos *int) int

func Fgets

func Fgets(dest []byte, num int, f *File) []byte

func Fprintf

func Fprintf(f *File, format []byte, args ...interface{}) int

func Fputc

func Fputc(c int, f *File) int

func Fputs

func Fputs(content []byte, f *File) int

func Fread

func Fread(buffer *[]byte, size1, size2 int, f *File) int

func Free

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 Fscanf

func Fscanf(f *File, format []byte, args ...interface{}) int

func Fseek

func Fseek(f *File, offset int32, origin int) int

func Fsetpos

func Fsetpos(f *File, pos *int) int

func Ftell

func Ftell(f *File) int32

func Fwrite

func Fwrite(buffer []byte, size1, size2 int, f *File) int

func Getchar

func Getchar() int

func IsNaN

func IsNaN(x float64) int

func NotInt

func NotInt(x int) int

func NotUint16

func NotUint16(x uint16) uint16

func NullTerminatedByteSlice

func NullTerminatedByteSlice(s []byte) string

NullTerminatedByteSlice returns a string that contains all the bytes in the provided C string up until the first NULL character.

func Printf

func Printf(format []byte, args ...interface{}) int

func Puts

func Puts(s []byte) int

func Remove

func Remove(filePath []byte) int

func Rename

func Rename(from, to []byte) int

func Rewind

func Rewind(f *File)

func Scanf

func Scanf(format []byte, args ...interface{}) int

func Signbitd

func Signbitd(x float64) int

func Signbitf

func Signbitf(x float32) int

func Signbitl

func Signbitl(x float64) int

func Strlen

func Strlen(a []byte) int

func Strtol

func Strtol(a, b []byte, c int) int32

func Ternary

func Ternary(a bool, b, c func() interface{}) interface{}

func Tmpnam

func Tmpnam(buffer []byte) []byte

Types

type File

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.

func Fopen

func Fopen(filePath, mode []byte) *File

func NewFile

func NewFile(f *os.File) *File

func Tmpfile

func Tmpfile() *File

Jump to

Keyboard shortcuts

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