opgolib

package module
v0.0.0-...-3dabef2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

README

opgolib

Documentation

Index

Constants

View Source
const VERSION = "2"

Variables

This section is empty.

Functions

func Find

func Find(dir_name string) []string

func HexDump

func HexDump(buf []byte, w io.Writer)

func RandomString

func RandomString(size int) string

func SayHello

func SayHello()

func Seed

func Seed()

func Version

func Version() string

Types

type ClientStatus

type ClientStatus struct {
	// contains filtered or unexported fields
}

func (*ClientStatus) CS_Close

func (cs *ClientStatus) CS_Close() error

func (*ClientStatus) CS_Recv

func (cs *ClientStatus) CS_Recv(size int) (*GPB, error)

func (*ClientStatus) CS_Send

func (cs *ClientStatus) CS_Send(gpb *GPB) (int, error)

func (*ClientStatus) CS_set_log

func (cs *ClientStatus) CS_set_log(file_name string) error

type DirTree

type DirTree struct {
	// contains filtered or unexported fields
}

func (*DirTree) AddAnotherDir

func (tr *DirTree) AddAnotherDir(dirname string)

func (*DirTree) StartReadTree

func (tr *DirTree) StartReadTree() error

type GPB

type GPB struct {
	OutOfBound error
	// contains filtered or unexported fields
}

func NewGPB

func NewGPB(size int, counter bool) *GPB

func NewGPBBuf

func NewGPBBuf(buf []byte) *GPB

func (*GPB) Get_buf

func (b *GPB) Get_buf() []byte

func (*GPB) Get_pos

func (b *GPB) Get_pos() int

func (*GPB) Get_size

func (b *GPB) Get_size() int

func (*GPB) R16

func (b *GPB) R16() (uint16, error)

func (*GPB) R16_all

func (b *GPB) R16_all(count int) ([]uint16, error)

func (*GPB) R16_signed

func (b *GPB) R16_signed() (int16, error)

func (*GPB) R32

func (b *GPB) R32() (uint32, error)

func (*GPB) R32_all

func (b *GPB) R32_all(count int) ([]uint32, error)

func (*GPB) R32_signed

func (b *GPB) R32_signed() (int32, error)

func (*GPB) R64

func (b *GPB) R64() (uint64, error)

func (*GPB) R64_signed

func (b *GPB) R64_signed() (int64, error)

func (*GPB) R8

func (b *GPB) R8() (byte, error)

func (*GPB) R8_all

func (b *GPB) R8_all(count int) ([]byte, error)

func (*GPB) R8_signed

func (b *GPB) R8_signed() (int8, error)

func (*GPB) RD

func (b *GPB) RD(asize int) ([]byte, error)

func (*GPB) RS

func (b *GPB) RS(asize int) (string, error)

func (*GPB) RSZ

func (b *GPB) RSZ() (string, error)

func (*GPB) RSZ_all

func (b *GPB) RSZ_all(count int) ([]string, error)

func (*GPB) R_map

func (b *GPB) R_map() (map[string]string, error)

func (*GPB) Set_buf

func (b *GPB) Set_buf(buf []byte)

func (*GPB) Set_pos

func (b *GPB) Set_pos(pos int)

func (*GPB) W16

func (b *GPB) W16(w uint16) error

func (*GPB) W16_all

func (b *GPB) W16_all(w ...uint16) error

func (*GPB) W16_signed

func (b *GPB) W16_signed(i int16) error

func (*GPB) W32

func (b *GPB) W32(dw uint32) error

func (*GPB) W32_all

func (b *GPB) W32_all(d ...uint32) error

func (*GPB) W32_signed

func (b *GPB) W32_signed(i int32) error

func (*GPB) W64

func (b *GPB) W64(qw uint64) error

func (*GPB) W64_signed

func (b *GPB) W64_signed(i int64) error

func (*GPB) W8

func (b *GPB) W8(c uint8) error

func (*GPB) W8_all

func (b *GPB) W8_all(bs ...byte) error

func (*GPB) W8_signed

func (b *GPB) W8_signed(i int8) error

func (*GPB) WD

func (b *GPB) WD(buf []byte) error

func (*GPB) WS

func (b *GPB) WS(str string) error

func (*GPB) WSZ

func (b *GPB) WSZ(str string) error

func (*GPB) WSZ_all

func (b *GPB) WSZ_all(arr ...string) error

func (*GPB) W_map

func (b *GPB) W_map(m map[string]string)

type OPClient

type OPClient struct {
	// contains filtered or unexported fields
}

func Client_new

func Client_new() *OPClient

func (*OPClient) Client_close

func (client *OPClient) Client_close()

func (*OPClient) Client_close_read

func (client *OPClient) Client_close_read()

func (*OPClient) Client_close_write

func (client *OPClient) Client_close_write()

func (*OPClient) Client_connect

func (client *OPClient) Client_connect(addr_port string) error

func (*OPClient) Client_enable_recv_bytes

func (client *OPClient) Client_enable_recv_bytes(status bool)

func (*OPClient) Client_get_obtained

func (client *OPClient) Client_get_obtained() *bytes.Buffer

func (*OPClient) Client_log

func (client *OPClient) Client_log(gpb *GPB)

func (*OPClient) Client_recv

func (client *OPClient) Client_recv(size int) (*GPB, error)

func (*OPClient) Client_recv_msg

func (client *OPClient) Client_recv_msg() (*GPB, error)

func (*OPClient) Client_send

func (client *OPClient) Client_send(gpb *GPB) error

func (*OPClient) Client_set_log

func (client *OPClient) Client_set_log(log_file_name string) error

type OPServer

type OPServer struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *OPServer

func (*OPServer) Accept

func (serv *OPServer) Accept() (*ClientStatus, error)

func (*OPServer) Listen

func (serv *OPServer) Listen(host_port string) error

type StringArray

type StringArray struct {
	// contains filtered or unexported fields
}

func NewStringArray

func NewStringArray(s string, count int) *StringArray

func (*StringArray) Array_all_valid

func (arr *StringArray) Array_all_valid() []string

func (*StringArray) Array_concat

func (arr *StringArray) Array_concat(another []string) []string

func (*StringArray) Array_from_list

func (arr *StringArray) Array_from_list(lst *list.List) []string

func (*StringArray) Array_get_array

func (arr *StringArray) Array_get_array() []string

func (*StringArray) Array_get_at

func (arr *StringArray) Array_get_at(idx int) string

func (*StringArray) Array_join

func (arr *StringArray) Array_join() []byte

func (*StringArray) Array_set_at

func (arr *StringArray) Array_set_at(idx int, s string) int

func (*StringArray) Array_to_list

func (arr *StringArray) Array_to_list() *list.List

func (*StringArray) Array_truncate

func (arr *StringArray) Array_truncate(size int) []string

func (*StringArray) DoubleSize

func (arr *StringArray) DoubleSize() error

func (*StringArray) HalfSize

func (arr *StringArray) HalfSize() error

func (*StringArray) Stack_pop

func (arr *StringArray) Stack_pop() (string, error)

func (*StringArray) Stack_push

func (arr *StringArray) Stack_push(s string) error

Jump to

Keyboard shortcuts

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