Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexbrainman/printer
/ functions
Functions
79 in github.com/alexbrainman/printer
⨍
Functions
79
◇
Types & classes
11
↓ 9 callers
Function
trim
(s string)
mksyscall_windows.go:70
↓ 7 callers
Method
Syscall
Syscall determines which SyscallX function to use for function f.
mksyscall_windows.go:519
↓ 6 callers
Function
syscalldot
()
mksyscall_windows.go:80
↓ 6 callers
Method
tmpVar
tmpVar returns temp variable name that will be used to represent p during syscall.
mksyscall_windows.go:96
↓ 5 callers
Method
Close
()
printer.go:377
↓ 5 callers
Function
Default
sys GetDefaultPrinter(buf *uint16, bufN *uint32) (err error) = winspool.GetDefaultPrinterW sys ClosePrinter(h syscall.Handle) (err error) = winspool.C
printer.go:114
↓ 5 callers
Function
join
join concatenates parameters ps into a string with sep separator. Each parameter is converted into string by applying fn to it before conversion.
mksyscall_windows.go:204
↓ 4 callers
Function
Open
(name string)
printer.go:159
↓ 4 callers
Function
ReadNames
ReadNames return printer names on the system
printer.go:132
↓ 3 callers
Function
extractSection
extractSection extracts text out of string s starting after start and ending just before end. found return value will indicate success, and prefix, bo
mksyscall_windows.go:364
↓ 2 callers
Method
DriverInfo
DriverInfo returns information about printer p driver.
printer.go:306
↓ 2 callers
Method
EndDocument
()
printer.go:365
↓ 2 callers
Method
EndPage
()
printer.go:373
↓ 2 callers
Function
EnumPrinters
(flags uint32, name *uint16, level uint32, buf *byte, bufN uint32, needed *uint32, returned *uint32)
zapi.go:122
↓ 2 callers
Function
GetDefaultPrinter
(buf *uint16, bufN *uint32)
zapi.go:26
↓ 2 callers
Method
HelperType
HelperType returns type of parameter p used in helper function.
mksyscall_windows.go:194
↓ 2 callers
Method
IsError
IsError determines if p parameter is used to return error.
mksyscall_windows.go:189
↓ 2 callers
Method
IsUTF16
IsUTF16 is true, if f is W (utf16) function. It is false for all A (ascii) functions.
mksyscall_windows.go:554
↓ 2 callers
Method
StartDocument
(name, datatype string)
printer.go:331
↓ 2 callers
Method
StartPage
()
printer.go:369
↓ 2 callers
Method
StrconvType
StrconvType returns Go type name used for OS string for f.
mksyscall_windows.go:568
↓ 2 callers
Method
SyscallArgList
SyscallArgList returns source code fragments representing p parameter in syscall. Slices are translated into 2 syscall parameters: pointer to the firs
mksyscall_windows.go:169
↓ 2 callers
Method
SyscallParamCount
SyscallParamCount determines which version of Syscall/Syscall6/Syscall9/... to use. It returns parameter count for correspondent SyscallX function.
mksyscall_windows.go:500
↓ 2 callers
Method
ToParams
ToParams converts r into slice of *Param.
mksyscall_windows.go:235
↓ 2 callers
Function
exit
(err error)
cmd/print/print.go:133
↓ 2 callers
Function
extractParams
extractParams parses s to extract function parameters.
mksyscall_windows.go:335
↓ 2 callers
Method
useLongHandleErrorCode
(retvar string)
mksyscall_windows.go:277
↓ 1 callers
Method
BoolTmpVarCode
BoolTmpVarCode returns source code for bool temp variable.
mksyscall_windows.go:105
↓ 1 callers
Function
ClosePrinter
(h syscall.Handle)
zapi.go:38
↓ 1 callers
Method
DLLFuncName
DLLName returns DLL function name for function f.
mksyscall_windows.go:466
↓ 1 callers
Method
DLLName
DLLName returns DLL name for function f.
mksyscall_windows.go:458
↓ 1 callers
Function
EndDocPrinter
(h syscall.Handle)
zapi.go:74
↓ 1 callers
Function
EndPagePrinter
(h syscall.Handle)
zapi.go:110
↓ 1 callers
Function
EnumJobs
(h syscall.Handle, firstJob uint32, noJobs uint32, level uint32, buf *byte, bufN uint32, bytesNeeded *uint32,
zapi.go:146
↓ 1 callers
Method
ErrorVarName
ErrorVarName returns error variable name for r.
mksyscall_windows.go:224
↓ 1 callers
Method
Generate
Generate output source file from a source set src.
mksyscall_windows.go:678
↓ 1 callers
Function
GetPrinterDriver
(h syscall.Handle, env *uint16, level uint32, di *byte, n uint32, needed *uint32)
zapi.go:134
↓ 1 callers
Method
HasStringParam
HasStringParam is true, if f has at least one string parameter. Otherwise it is false.
mksyscall_windows.go:577
↓ 1 callers
Method
Jobs
Jobs returns information about all print jobs on this printer
printer.go:194
↓ 1 callers
Function
OpenPrinter
(name *uint16, h *syscall.Handle, defaults uintptr)
zapi.go:50
↓ 1 callers
Method
ParamCount
ParamCount return number of syscall parameters for function f.
mksyscall_windows.go:490
↓ 1 callers
Method
ParseFile
ParseFile adds adition file path to a source set src.
mksyscall_windows.go:631
↓ 1 callers
Function
ParseFiles
ParseFiles parses files listed in fs and extracts all syscall functions listed in sys comments. It returns source files and functions collection *Sou
mksyscall_windows.go:603
↓ 1 callers
Method
SliceTmpVarCode
SliceTmpVarCode returns source code for slice temp variable.
mksyscall_windows.go:117
↓ 1 callers
Function
StartDocPrinter
(h syscall.Handle, level uint32, docinfo *DOC_INFO_1)
zapi.go:62
↓ 1 callers
Function
StartPagePrinter
(h syscall.Handle)
zapi.go:98
↓ 1 callers
Method
StartRawDocument
StartRawDocument calls StartDocument and passes either "RAW" or "XPS_PASS" as a document type, depending if printer driver is XPS-based or not.
printer.go:342
↓ 1 callers
Method
StrconvFunc
StrconvFunc returns name of Go string to OS string function for f.
mksyscall_windows.go:560
↓ 1 callers
Method
StringTmpVarCode
StringTmpVarCode returns source code for string temp variable.
mksyscall_windows.go:127
↓ 1 callers
Method
Write
(b []byte)
printer.go:356
↓ 1 callers
Function
WritePrinter
(h syscall.Handle, buf *byte, bufN uint32, written *uint32)
zapi.go:86
↓ 1 callers
Function
findDefaultPrinter
()
cmd/print/print.go:27
↓ 1 callers
Function
listPrinters
()
cmd/print/print.go:35
↓ 1 callers
Function
newFn
newFn parses string s and return created function Fn.
mksyscall_windows.go:385
↓ 1 callers
Function
printDocument
(path string)
cmd/print/print.go:98
↓ 1 callers
Function
printOneDocument
(printerName, documentName string, lines []string)
cmd/print/print.go:73
↓ 1 callers
Function
selectPrinter
()
cmd/print/print.go:54
↓ 1 callers
Function
usage
()
mksyscall_windows.go:691
↓ 1 callers
Function
usage
()
cmd/print/print.go:123
Method
DLLs
DLLs return dll names for a source set src.
mksyscall_windows.go:617
Method
HelperCallParamList
HelperCallParamList returns source code of call into function f helper.
mksyscall_windows.go:540
Method
HelperName
HelperName returns name of function f helper.
mksyscall_windows.go:587
Method
HelperParamList
HelperParamList returns source code for helper function f parameters.
mksyscall_windows.go:479
Method
List
List returns source code of syscall return parameters.
mksyscall_windows.go:247
Method
ParamList
ParamList returns source code for function f parameters.
mksyscall_windows.go:474
Method
ParamPrintList
ParamPrintList returns source code of trace printing part correspondent to syscall input parameters.
mksyscall_windows.go:485
Method
PrintList
PrintList returns source code of trace printing part correspondent to syscall return values.
mksyscall_windows.go:257
Method
SetErrorCode
SetErrorCode returns source code that sets return parameters.
mksyscall_windows.go:293
Method
SetReturnValuesCode
SetReturnValuesCode returns source code that accepts syscall return values.
mksyscall_windows.go:262
Method
SyscallParamList
SyscallParamList returns source code for SyscallX parameters for function f.
mksyscall_windows.go:528
Function
TestDriverInfo
(t *testing.T)
printer_test.go:59
Function
TestJobs
(t *testing.T)
printer_test.go:78
Function
TestPrinter
(t *testing.T)
printer_test.go:13
Function
TestReadNames
(t *testing.T)
printer_test.go:41
Method
TmpVarCode
TmpVarCode returns source code for temp variable.
mksyscall_windows.go:147
Method
TmpVarHelperCode
TmpVarHelperCode returns source code for helper's temp variable.
mksyscall_windows.go:159
Function
main
()
mksyscall_windows.go:697
Function
main
()
cmd/print/print.go:141
Function
packagename
()
mksyscall_windows.go:76