common

package module
v0.0.0-...-89c2ba4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MRequest

type MRequest struct {
	X, Y, Chunk, ScreenWidth, ScreenHeight, Iter int
	CenterX, CenterY, Size                       *big.Float
}

func NewMRequest

func NewMRequest(x, y, chunk, screenWidth, screenHeight int, centerX, centerY, size *big.Float, iter int) MRequest

func NewMRequestFromBytes

func NewMRequestFromBytes(b []byte) MRequest

func (MRequest) ToBytes

func (m MRequest) ToBytes() []byte

type MResponse

type MResponse struct {
	Iter     []int
	CalcTime time.Duration
}

func NewMResponse

func NewMResponse(iter []int, calcTime time.Duration) MResponse

func NewMResponseFromBytes

func NewMResponseFromBytes(b []byte) MResponse

func (MResponse) Extract

func (m MResponse) Extract() ([]int, time.Duration)

func (MResponse) ToBytes

func (m MResponse) ToBytes() []byte

Jump to

Keyboard shortcuts

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