Documentation
¶
Index ¶
- Constants
- func BytesToLeakedPtr(s []byte) (uint32, uint32)
- func BytesToPtr(s []byte) (uint32, uint32)
- func PtrToBytes(ptr uint32, size uint32) []byte
- func PtrToString(ptr uint32, size uint32) string
- func StringToLeakedPtr(s string) (uint32, uint32)
- func StringToPtr(s string) (uint32, uint32)
- type Allocation
- type MakeChallengeInput
- type MakeChallengeOutput
- type VerifyChallengeInput
- type VerifyChallengeOutput
Constants ¶
View Source
const ( VerifyChallengeOutputOK = VerifyChallengeOutput(iota) VerifyChallengeOutputFailed VerifyChallengeOutputError )
TODO: expand allowed values
Variables ¶
This section is empty.
Functions ¶
func BytesToLeakedPtr ¶
func BytesToPtr ¶
func PtrToBytes ¶
func PtrToString ¶
func StringToLeakedPtr ¶
func StringToPtr ¶
Types ¶
type Allocation ¶
type Allocation uint64
Allocation is a combination of pointer location in WASM memory and size of it
func MakeChallengeDecode ¶
func MakeChallengeDecode(callback func(in MakeChallengeInput, out *MakeChallengeOutput), in Allocation) (out Allocation)
func NewAllocation ¶
func NewAllocation(ptr, size uint32) Allocation
func (Allocation) Pointer ¶
func (p Allocation) Pointer() uint32
func (Allocation) Size ¶
func (p Allocation) Size() uint32
type MakeChallengeInput ¶
type MakeChallengeOutput ¶
type MakeChallengeOutput struct { Data []byte Code int Headers inline.MIMEHeader Error string }
type VerifyChallengeInput ¶
type VerifyChallengeOutput ¶
type VerifyChallengeOutput uint64
func VerifyChallengeDecode ¶
func VerifyChallengeDecode(callback func(in VerifyChallengeInput) VerifyChallengeOutput, in Allocation) (out VerifyChallengeOutput)
Click to show internal directories.
Click to hide internal directories.