Documentation ¶
Index ¶
- func FilDestroyAggregateResponse(ptr *FilAggregateResponse)
- func FilDestroyClearCacheResponse(ptr *FilClearCacheResponse)
- func FilDestroyFauxrepResponse(ptr *FilFauxRepResponse)
- func FilDestroyFinalizeTicketResponse(ptr *FilFinalizeTicketResponse)
- func FilDestroyGenerateDataCommitmentResponse(ptr *FilGenerateDataCommitmentResponse)
- func FilDestroyGeneratePieceCommitmentResponse(ptr *FilGeneratePieceCommitmentResponse)
- func FilDestroyGenerateWindowPostResponse(ptr *FilGenerateWindowPoStResponse)
- func FilDestroyGenerateWinningPostResponse(ptr *FilGenerateWinningPoStResponse)
- func FilDestroyGenerateWinningPostSectorChallenge(ptr *FilGenerateWinningPoStSectorChallenge)
- func FilDestroyGpuDeviceResponse(ptr *FilGpuDeviceResponse)
- func FilDestroyHashResponse(ptr *FilHashResponse)
- func FilDestroyInitLogFdResponse(ptr *FilInitLogFdResponse)
- func FilDestroyPrivateKeyGenerateResponse(ptr *FilPrivateKeyGenerateResponse)
- func FilDestroyPrivateKeyPublicKeyResponse(ptr *FilPrivateKeyPublicKeyResponse)
- func FilDestroyPrivateKeySignResponse(ptr *FilPrivateKeySignResponse)
- func FilDestroySealCommitPhase1Response(ptr *FilSealCommitPhase1Response)
- func FilDestroySealCommitPhase2Response(ptr *FilSealCommitPhase2Response)
- func FilDestroySealPreCommitPhase1Response(ptr *FilSealPreCommitPhase1Response)
- func FilDestroySealPreCommitPhase2Response(ptr *FilSealPreCommitPhase2Response)
- func FilDestroyStringResponse(ptr *FilStringResponse)
- func FilDestroyUnsealRangeResponse(ptr *FilUnsealRangeResponse)
- func FilDestroyVerifySealResponse(ptr *FilVerifySealResponse)
- func FilDestroyVerifyWindowPostResponse(ptr *FilVerifyWindowPoStResponse)
- func FilDestroyVerifyWinningPostResponse(ptr *FilVerifyWinningPoStResponse)
- func FilDestroyWriteWithAlignmentResponse(ptr *FilWriteWithAlignmentResponse)
- func FilDestroyWriteWithoutAlignmentResponse(ptr *FilWriteWithoutAlignmentResponse)
- func FilGetMaxUserBytesPerStagedSector(registeredProof FilRegisteredSealProof) uint64
- func FilHashVerify(signaturePtr string, flattenedMessagesPtr string, flattenedMessagesLen uint, ...) int32
- func FilVerify(signaturePtr string, flattenedDigestsPtr string, flattenedDigestsLen uint, ...) int32
- type FCPResponseStatus
- type Fil32ByteArray
- type FilAggregateResponse
- func (x *FilAggregateResponse) Deref()
- func (x *FilAggregateResponse) Free()
- func (x *FilAggregateResponse) PassRef() (*C.fil_AggregateResponse, *cgoAllocMap)
- func (x FilAggregateResponse) PassValue() (C.fil_AggregateResponse, *cgoAllocMap)
- func (x *FilAggregateResponse) Ref() *C.fil_AggregateResponse
- type FilBLSDigest
- type FilBLSPrivateKey
- type FilBLSPublicKey
- type FilBLSSignature
- type FilClearCacheResponse
- func (x *FilClearCacheResponse) Deref()
- func (x *FilClearCacheResponse) Free()
- func (x *FilClearCacheResponse) PassRef() (*C.fil_ClearCacheResponse, *cgoAllocMap)
- func (x FilClearCacheResponse) PassValue() (C.fil_ClearCacheResponse, *cgoAllocMap)
- func (x *FilClearCacheResponse) Ref() *C.fil_ClearCacheResponse
- type FilFauxRepResponse
- type FilFinalizeTicketResponse
- func (x *FilFinalizeTicketResponse) Deref()
- func (x *FilFinalizeTicketResponse) Free()
- func (x *FilFinalizeTicketResponse) PassRef() (*C.fil_FinalizeTicketResponse, *cgoAllocMap)
- func (x FilFinalizeTicketResponse) PassValue() (C.fil_FinalizeTicketResponse, *cgoAllocMap)
- func (x *FilFinalizeTicketResponse) Ref() *C.fil_FinalizeTicketResponse
- type FilGenerateDataCommitmentResponse
- func (x *FilGenerateDataCommitmentResponse) Deref()
- func (x *FilGenerateDataCommitmentResponse) Free()
- func (x *FilGenerateDataCommitmentResponse) PassRef() (*C.fil_GenerateDataCommitmentResponse, *cgoAllocMap)
- func (x FilGenerateDataCommitmentResponse) PassValue() (C.fil_GenerateDataCommitmentResponse, *cgoAllocMap)
- func (x *FilGenerateDataCommitmentResponse) Ref() *C.fil_GenerateDataCommitmentResponse
- type FilGeneratePieceCommitmentResponse
- func (x *FilGeneratePieceCommitmentResponse) Deref()
- func (x *FilGeneratePieceCommitmentResponse) Free()
- func (x *FilGeneratePieceCommitmentResponse) PassRef() (*C.fil_GeneratePieceCommitmentResponse, *cgoAllocMap)
- func (x FilGeneratePieceCommitmentResponse) PassValue() (C.fil_GeneratePieceCommitmentResponse, *cgoAllocMap)
- func (x *FilGeneratePieceCommitmentResponse) Ref() *C.fil_GeneratePieceCommitmentResponse
- type FilGenerateWindowPoStResponse
- func (x *FilGenerateWindowPoStResponse) Deref()
- func (x *FilGenerateWindowPoStResponse) Free()
- func (x *FilGenerateWindowPoStResponse) PassRef() (*C.fil_GenerateWindowPoStResponse, *cgoAllocMap)
- func (x FilGenerateWindowPoStResponse) PassValue() (C.fil_GenerateWindowPoStResponse, *cgoAllocMap)
- func (x *FilGenerateWindowPoStResponse) Ref() *C.fil_GenerateWindowPoStResponse
- type FilGenerateWinningPoStResponse
- func (x *FilGenerateWinningPoStResponse) Deref()
- func (x *FilGenerateWinningPoStResponse) Free()
- func (x *FilGenerateWinningPoStResponse) PassRef() (*C.fil_GenerateWinningPoStResponse, *cgoAllocMap)
- func (x FilGenerateWinningPoStResponse) PassValue() (C.fil_GenerateWinningPoStResponse, *cgoAllocMap)
- func (x *FilGenerateWinningPoStResponse) Ref() *C.fil_GenerateWinningPoStResponse
- type FilGenerateWinningPoStSectorChallenge
- func (x *FilGenerateWinningPoStSectorChallenge) Deref()
- func (x *FilGenerateWinningPoStSectorChallenge) Free()
- func (x *FilGenerateWinningPoStSectorChallenge) PassRef() (*C.fil_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
- func (x FilGenerateWinningPoStSectorChallenge) PassValue() (C.fil_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
- func (x *FilGenerateWinningPoStSectorChallenge) Ref() *C.fil_GenerateWinningPoStSectorChallenge
- type FilGpuDeviceResponse
- func (x *FilGpuDeviceResponse) Deref()
- func (x *FilGpuDeviceResponse) Free()
- func (x *FilGpuDeviceResponse) PassRef() (*C.fil_GpuDeviceResponse, *cgoAllocMap)
- func (x FilGpuDeviceResponse) PassValue() (C.fil_GpuDeviceResponse, *cgoAllocMap)
- func (x *FilGpuDeviceResponse) Ref() *C.fil_GpuDeviceResponse
- type FilHashResponse
- type FilInitLogFdResponse
- func (x *FilInitLogFdResponse) Deref()
- func (x *FilInitLogFdResponse) Free()
- func (x *FilInitLogFdResponse) PassRef() (*C.fil_InitLogFdResponse, *cgoAllocMap)
- func (x FilInitLogFdResponse) PassValue() (C.fil_InitLogFdResponse, *cgoAllocMap)
- func (x *FilInitLogFdResponse) Ref() *C.fil_InitLogFdResponse
- type FilPoStProof
- type FilPrivateKeyGenerateResponse
- func (x *FilPrivateKeyGenerateResponse) Deref()
- func (x *FilPrivateKeyGenerateResponse) Free()
- func (x *FilPrivateKeyGenerateResponse) PassRef() (*C.fil_PrivateKeyGenerateResponse, *cgoAllocMap)
- func (x FilPrivateKeyGenerateResponse) PassValue() (C.fil_PrivateKeyGenerateResponse, *cgoAllocMap)
- func (x *FilPrivateKeyGenerateResponse) Ref() *C.fil_PrivateKeyGenerateResponse
- type FilPrivateKeyPublicKeyResponse
- func (x *FilPrivateKeyPublicKeyResponse) Deref()
- func (x *FilPrivateKeyPublicKeyResponse) Free()
- func (x *FilPrivateKeyPublicKeyResponse) PassRef() (*C.fil_PrivateKeyPublicKeyResponse, *cgoAllocMap)
- func (x FilPrivateKeyPublicKeyResponse) PassValue() (C.fil_PrivateKeyPublicKeyResponse, *cgoAllocMap)
- func (x *FilPrivateKeyPublicKeyResponse) Ref() *C.fil_PrivateKeyPublicKeyResponse
- type FilPrivateKeySignResponse
- func (x *FilPrivateKeySignResponse) Deref()
- func (x *FilPrivateKeySignResponse) Free()
- func (x *FilPrivateKeySignResponse) PassRef() (*C.fil_PrivateKeySignResponse, *cgoAllocMap)
- func (x FilPrivateKeySignResponse) PassValue() (C.fil_PrivateKeySignResponse, *cgoAllocMap)
- func (x *FilPrivateKeySignResponse) Ref() *C.fil_PrivateKeySignResponse
- type FilPrivateReplicaInfo
- func (x *FilPrivateReplicaInfo) AllocateProxy() func()
- func (x *FilPrivateReplicaInfo) Deref()
- func (x *FilPrivateReplicaInfo) Free()
- func (x *FilPrivateReplicaInfo) PassRef() (*C.fil_PrivateReplicaInfo, *cgoAllocMap)
- func (x FilPrivateReplicaInfo) PassValue() (C.fil_PrivateReplicaInfo, *cgoAllocMap)
- func (x *FilPrivateReplicaInfo) Ref() *C.fil_PrivateReplicaInfo
- type FilPublicPieceInfo
- type FilPublicReplicaInfo
- func (x *FilPublicReplicaInfo) Deref()
- func (x *FilPublicReplicaInfo) Free()
- func (x *FilPublicReplicaInfo) PassRef() (*C.fil_PublicReplicaInfo, *cgoAllocMap)
- func (x FilPublicReplicaInfo) PassValue() (C.fil_PublicReplicaInfo, *cgoAllocMap)
- func (x *FilPublicReplicaInfo) Ref() *C.fil_PublicReplicaInfo
- type FilRegisteredPoStProof
- type FilRegisteredSealProof
- type FilSealCommitPhase1Response
- func (x *FilSealCommitPhase1Response) Deref()
- func (x *FilSealCommitPhase1Response) Free()
- func (x *FilSealCommitPhase1Response) PassRef() (*C.fil_SealCommitPhase1Response, *cgoAllocMap)
- func (x FilSealCommitPhase1Response) PassValue() (C.fil_SealCommitPhase1Response, *cgoAllocMap)
- func (x *FilSealCommitPhase1Response) Ref() *C.fil_SealCommitPhase1Response
- type FilSealCommitPhase2Response
- func (x *FilSealCommitPhase2Response) Deref()
- func (x *FilSealCommitPhase2Response) Free()
- func (x *FilSealCommitPhase2Response) PassRef() (*C.fil_SealCommitPhase2Response, *cgoAllocMap)
- func (x FilSealCommitPhase2Response) PassValue() (C.fil_SealCommitPhase2Response, *cgoAllocMap)
- func (x *FilSealCommitPhase2Response) Ref() *C.fil_SealCommitPhase2Response
- type FilSealPreCommitPhase1Response
- func (x *FilSealPreCommitPhase1Response) Deref()
- func (x *FilSealPreCommitPhase1Response) Free()
- func (x *FilSealPreCommitPhase1Response) PassRef() (*C.fil_SealPreCommitPhase1Response, *cgoAllocMap)
- func (x FilSealPreCommitPhase1Response) PassValue() (C.fil_SealPreCommitPhase1Response, *cgoAllocMap)
- func (x *FilSealPreCommitPhase1Response) Ref() *C.fil_SealPreCommitPhase1Response
- type FilSealPreCommitPhase2Response
- func (x *FilSealPreCommitPhase2Response) Deref()
- func (x *FilSealPreCommitPhase2Response) Free()
- func (x *FilSealPreCommitPhase2Response) PassRef() (*C.fil_SealPreCommitPhase2Response, *cgoAllocMap)
- func (x FilSealPreCommitPhase2Response) PassValue() (C.fil_SealPreCommitPhase2Response, *cgoAllocMap)
- func (x *FilSealPreCommitPhase2Response) Ref() *C.fil_SealPreCommitPhase2Response
- type FilStringResponse
- func FilGetPostCircuitIdentifier(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetPostParamsCid(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetPostParamsPath(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetPostVerifyingKeyCid(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetPostVerifyingKeyPath(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetPostVersion(registeredProof FilRegisteredPoStProof) *FilStringResponse
- func FilGetSealCircuitIdentifier(registeredProof FilRegisteredSealProof) *FilStringResponse
- func FilGetSealParamsCid(registeredProof FilRegisteredSealProof) *FilStringResponse
- func FilGetSealParamsPath(registeredProof FilRegisteredSealProof) *FilStringResponse
- func FilGetSealVerifyingKeyCid(registeredProof FilRegisteredSealProof) *FilStringResponse
- func FilGetSealVerifyingKeyPath(registeredProof FilRegisteredSealProof) *FilStringResponse
- func FilGetSealVersion(registeredProof FilRegisteredSealProof) *FilStringResponse
- func NewFilStringResponseRef(ref unsafe.Pointer) *FilStringResponse
- type FilUnsealRangeResponse
- func (x *FilUnsealRangeResponse) Deref()
- func (x *FilUnsealRangeResponse) Free()
- func (x *FilUnsealRangeResponse) PassRef() (*C.fil_UnsealRangeResponse, *cgoAllocMap)
- func (x FilUnsealRangeResponse) PassValue() (C.fil_UnsealRangeResponse, *cgoAllocMap)
- func (x *FilUnsealRangeResponse) Ref() *C.fil_UnsealRangeResponse
- type FilVerifySealResponse
- func (x *FilVerifySealResponse) Deref()
- func (x *FilVerifySealResponse) Free()
- func (x *FilVerifySealResponse) PassRef() (*C.fil_VerifySealResponse, *cgoAllocMap)
- func (x FilVerifySealResponse) PassValue() (C.fil_VerifySealResponse, *cgoAllocMap)
- func (x *FilVerifySealResponse) Ref() *C.fil_VerifySealResponse
- type FilVerifyWindowPoStResponse
- func (x *FilVerifyWindowPoStResponse) Deref()
- func (x *FilVerifyWindowPoStResponse) Free()
- func (x *FilVerifyWindowPoStResponse) PassRef() (*C.fil_VerifyWindowPoStResponse, *cgoAllocMap)
- func (x FilVerifyWindowPoStResponse) PassValue() (C.fil_VerifyWindowPoStResponse, *cgoAllocMap)
- func (x *FilVerifyWindowPoStResponse) Ref() *C.fil_VerifyWindowPoStResponse
- type FilVerifyWinningPoStResponse
- func (x *FilVerifyWinningPoStResponse) Deref()
- func (x *FilVerifyWinningPoStResponse) Free()
- func (x *FilVerifyWinningPoStResponse) PassRef() (*C.fil_VerifyWinningPoStResponse, *cgoAllocMap)
- func (x FilVerifyWinningPoStResponse) PassValue() (C.fil_VerifyWinningPoStResponse, *cgoAllocMap)
- func (x *FilVerifyWinningPoStResponse) Ref() *C.fil_VerifyWinningPoStResponse
- type FilWriteWithAlignmentResponse
- func (x *FilWriteWithAlignmentResponse) Deref()
- func (x *FilWriteWithAlignmentResponse) Free()
- func (x *FilWriteWithAlignmentResponse) PassRef() (*C.fil_WriteWithAlignmentResponse, *cgoAllocMap)
- func (x FilWriteWithAlignmentResponse) PassValue() (C.fil_WriteWithAlignmentResponse, *cgoAllocMap)
- func (x *FilWriteWithAlignmentResponse) Ref() *C.fil_WriteWithAlignmentResponse
- type FilWriteWithoutAlignmentResponse
- func (x *FilWriteWithoutAlignmentResponse) Deref()
- func (x *FilWriteWithoutAlignmentResponse) Free()
- func (x *FilWriteWithoutAlignmentResponse) PassRef() (*C.fil_WriteWithoutAlignmentResponse, *cgoAllocMap)
- func (x FilWriteWithoutAlignmentResponse) PassValue() (C.fil_WriteWithoutAlignmentResponse, *cgoAllocMap)
- func (x *FilWriteWithoutAlignmentResponse) Ref() *C.fil_WriteWithoutAlignmentResponse
- type RawString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilDestroyAggregateResponse ¶
func FilDestroyAggregateResponse(ptr *FilAggregateResponse)
FilDestroyAggregateResponse function as declared in filecoin-ffi/filcrypto.h:292
func FilDestroyClearCacheResponse ¶
func FilDestroyClearCacheResponse(ptr *FilClearCacheResponse)
FilDestroyClearCacheResponse function as declared in filecoin-ffi/filcrypto.h:294
func FilDestroyFauxrepResponse ¶
func FilDestroyFauxrepResponse(ptr *FilFauxRepResponse)
FilDestroyFauxrepResponse function as declared in filecoin-ffi/filcrypto.h:296
func FilDestroyFinalizeTicketResponse ¶
func FilDestroyFinalizeTicketResponse(ptr *FilFinalizeTicketResponse)
FilDestroyFinalizeTicketResponse function as declared in filecoin-ffi/filcrypto.h:298
func FilDestroyGenerateDataCommitmentResponse ¶
func FilDestroyGenerateDataCommitmentResponse(ptr *FilGenerateDataCommitmentResponse)
FilDestroyGenerateDataCommitmentResponse function as declared in filecoin-ffi/filcrypto.h:300
func FilDestroyGeneratePieceCommitmentResponse ¶
func FilDestroyGeneratePieceCommitmentResponse(ptr *FilGeneratePieceCommitmentResponse)
FilDestroyGeneratePieceCommitmentResponse function as declared in filecoin-ffi/filcrypto.h:302
func FilDestroyGenerateWindowPostResponse ¶
func FilDestroyGenerateWindowPostResponse(ptr *FilGenerateWindowPoStResponse)
FilDestroyGenerateWindowPostResponse function as declared in filecoin-ffi/filcrypto.h:304
func FilDestroyGenerateWinningPostResponse ¶
func FilDestroyGenerateWinningPostResponse(ptr *FilGenerateWinningPoStResponse)
FilDestroyGenerateWinningPostResponse function as declared in filecoin-ffi/filcrypto.h:306
func FilDestroyGenerateWinningPostSectorChallenge ¶
func FilDestroyGenerateWinningPostSectorChallenge(ptr *FilGenerateWinningPoStSectorChallenge)
FilDestroyGenerateWinningPostSectorChallenge function as declared in filecoin-ffi/filcrypto.h:308
func FilDestroyGpuDeviceResponse ¶
func FilDestroyGpuDeviceResponse(ptr *FilGpuDeviceResponse)
FilDestroyGpuDeviceResponse function as declared in filecoin-ffi/filcrypto.h:310
func FilDestroyHashResponse ¶
func FilDestroyHashResponse(ptr *FilHashResponse)
FilDestroyHashResponse function as declared in filecoin-ffi/filcrypto.h:312
func FilDestroyInitLogFdResponse ¶
func FilDestroyInitLogFdResponse(ptr *FilInitLogFdResponse)
FilDestroyInitLogFdResponse function as declared in filecoin-ffi/filcrypto.h:314
func FilDestroyPrivateKeyGenerateResponse ¶
func FilDestroyPrivateKeyGenerateResponse(ptr *FilPrivateKeyGenerateResponse)
FilDestroyPrivateKeyGenerateResponse function as declared in filecoin-ffi/filcrypto.h:316
func FilDestroyPrivateKeyPublicKeyResponse ¶
func FilDestroyPrivateKeyPublicKeyResponse(ptr *FilPrivateKeyPublicKeyResponse)
FilDestroyPrivateKeyPublicKeyResponse function as declared in filecoin-ffi/filcrypto.h:318
func FilDestroyPrivateKeySignResponse ¶
func FilDestroyPrivateKeySignResponse(ptr *FilPrivateKeySignResponse)
FilDestroyPrivateKeySignResponse function as declared in filecoin-ffi/filcrypto.h:320
func FilDestroySealCommitPhase1Response ¶
func FilDestroySealCommitPhase1Response(ptr *FilSealCommitPhase1Response)
FilDestroySealCommitPhase1Response function as declared in filecoin-ffi/filcrypto.h:322
func FilDestroySealCommitPhase2Response ¶
func FilDestroySealCommitPhase2Response(ptr *FilSealCommitPhase2Response)
FilDestroySealCommitPhase2Response function as declared in filecoin-ffi/filcrypto.h:324
func FilDestroySealPreCommitPhase1Response ¶
func FilDestroySealPreCommitPhase1Response(ptr *FilSealPreCommitPhase1Response)
FilDestroySealPreCommitPhase1Response function as declared in filecoin-ffi/filcrypto.h:326
func FilDestroySealPreCommitPhase2Response ¶
func FilDestroySealPreCommitPhase2Response(ptr *FilSealPreCommitPhase2Response)
FilDestroySealPreCommitPhase2Response function as declared in filecoin-ffi/filcrypto.h:328
func FilDestroyStringResponse ¶
func FilDestroyStringResponse(ptr *FilStringResponse)
FilDestroyStringResponse function as declared in filecoin-ffi/filcrypto.h:330
func FilDestroyUnsealRangeResponse ¶
func FilDestroyUnsealRangeResponse(ptr *FilUnsealRangeResponse)
FilDestroyUnsealRangeResponse function as declared in filecoin-ffi/filcrypto.h:332
func FilDestroyVerifySealResponse ¶
func FilDestroyVerifySealResponse(ptr *FilVerifySealResponse)
FilDestroyVerifySealResponse function as declared in filecoin-ffi/filcrypto.h:338
func FilDestroyVerifyWindowPostResponse ¶
func FilDestroyVerifyWindowPostResponse(ptr *FilVerifyWindowPoStResponse)
FilDestroyVerifyWindowPostResponse function as declared in filecoin-ffi/filcrypto.h:340
func FilDestroyVerifyWinningPostResponse ¶
func FilDestroyVerifyWinningPostResponse(ptr *FilVerifyWinningPoStResponse)
FilDestroyVerifyWinningPostResponse function as declared in filecoin-ffi/filcrypto.h:346
func FilDestroyWriteWithAlignmentResponse ¶
func FilDestroyWriteWithAlignmentResponse(ptr *FilWriteWithAlignmentResponse)
FilDestroyWriteWithAlignmentResponse function as declared in filecoin-ffi/filcrypto.h:348
func FilDestroyWriteWithoutAlignmentResponse ¶
func FilDestroyWriteWithoutAlignmentResponse(ptr *FilWriteWithoutAlignmentResponse)
FilDestroyWriteWithoutAlignmentResponse function as declared in filecoin-ffi/filcrypto.h:350
func FilGetMaxUserBytesPerStagedSector ¶
func FilGetMaxUserBytesPerStagedSector(registeredProof FilRegisteredSealProof) uint64
FilGetMaxUserBytesPerStagedSector function as declared in filecoin-ffi/filcrypto.h:407
Types ¶
type FCPResponseStatus ¶
type FCPResponseStatus int32
FCPResponseStatus as declared in filecoin-ffi/filcrypto.h:31
const ( FCPResponseStatusFCPNoError FCPResponseStatus = C.FCPResponseStatus_FCPNoError FCPResponseStatusFCPUnclassifiedError FCPResponseStatus = C.FCPResponseStatus_FCPUnclassifiedError FCPResponseStatusFCPCallerError FCPResponseStatus = C.FCPResponseStatus_FCPCallerError FCPResponseStatusFCPReceiverError FCPResponseStatus = C.FCPResponseStatus_FCPReceiverError )
FCPResponseStatus enumeration from filecoin-ffi/filcrypto.h:31
type Fil32ByteArray ¶
type Fil32ByteArray struct { Inner [32]byte // contains filtered or unexported fields }
Fil32ByteArray as declared in filecoin-ffi/filcrypto.h:261
func NewFil32ByteArrayRef ¶
func NewFil32ByteArrayRef(ref unsafe.Pointer) *Fil32ByteArray
NewFil32ByteArrayRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Fil32ByteArray) Deref ¶
func (x *Fil32ByteArray) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Fil32ByteArray) Free ¶
func (x *Fil32ByteArray) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Fil32ByteArray) PassRef ¶
func (x *Fil32ByteArray) PassRef() (*C.fil_32ByteArray, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Fil32ByteArray) PassValue ¶
func (x Fil32ByteArray) PassValue() (C.fil_32ByteArray, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Fil32ByteArray) Ref ¶
func (x *Fil32ByteArray) Ref() *C.fil_32ByteArray
Ref returns the underlying reference to C object or nil if struct is nil.
type FilAggregateResponse ¶
type FilAggregateResponse struct { Signature FilBLSSignature // contains filtered or unexported fields }
FilAggregateResponse as declared in filecoin-ffi/filcrypto.h:63
func FilAggregate ¶
func FilAggregate(flattenedSignaturesPtr string, flattenedSignaturesLen uint) *FilAggregateResponse
FilAggregate function as declared in filecoin-ffi/filcrypto.h:287
func NewFilAggregateResponseRef ¶
func NewFilAggregateResponseRef(ref unsafe.Pointer) *FilAggregateResponse
NewFilAggregateResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilAggregateResponse) Deref ¶
func (x *FilAggregateResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilAggregateResponse) Free ¶
func (x *FilAggregateResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilAggregateResponse) PassRef ¶
func (x *FilAggregateResponse) PassRef() (*C.fil_AggregateResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilAggregateResponse) PassValue ¶
func (x FilAggregateResponse) PassValue() (C.fil_AggregateResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilAggregateResponse) Ref ¶
func (x *FilAggregateResponse) Ref() *C.fil_AggregateResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilBLSDigest ¶
type FilBLSDigest struct { Inner [96]byte // contains filtered or unexported fields }
FilBLSDigest as declared in filecoin-ffi/filcrypto.h:135
func NewFilBLSDigestRef ¶
func NewFilBLSDigestRef(ref unsafe.Pointer) *FilBLSDigest
NewFilBLSDigestRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilBLSDigest) Deref ¶
func (x *FilBLSDigest) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilBLSDigest) Free ¶
func (x *FilBLSDigest) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilBLSDigest) PassRef ¶
func (x *FilBLSDigest) PassRef() (*C.fil_BLSDigest, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilBLSDigest) PassValue ¶
func (x FilBLSDigest) PassValue() (C.fil_BLSDigest, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilBLSDigest) Ref ¶
func (x *FilBLSDigest) Ref() *C.fil_BLSDigest
Ref returns the underlying reference to C object or nil if struct is nil.
type FilBLSPrivateKey ¶
type FilBLSPrivateKey struct { Inner [32]byte // contains filtered or unexported fields }
FilBLSPrivateKey as declared in filecoin-ffi/filcrypto.h:151
func NewFilBLSPrivateKeyRef ¶
func NewFilBLSPrivateKeyRef(ref unsafe.Pointer) *FilBLSPrivateKey
NewFilBLSPrivateKeyRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilBLSPrivateKey) Deref ¶
func (x *FilBLSPrivateKey) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilBLSPrivateKey) Free ¶
func (x *FilBLSPrivateKey) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilBLSPrivateKey) PassRef ¶
func (x *FilBLSPrivateKey) PassRef() (*C.fil_BLSPrivateKey, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilBLSPrivateKey) PassValue ¶
func (x FilBLSPrivateKey) PassValue() (C.fil_BLSPrivateKey, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilBLSPrivateKey) Ref ¶
func (x *FilBLSPrivateKey) Ref() *C.fil_BLSPrivateKey
Ref returns the underlying reference to C object or nil if struct is nil.
type FilBLSPublicKey ¶
type FilBLSPublicKey struct { Inner [48]byte // contains filtered or unexported fields }
FilBLSPublicKey as declared in filecoin-ffi/filcrypto.h:162
func NewFilBLSPublicKeyRef ¶
func NewFilBLSPublicKeyRef(ref unsafe.Pointer) *FilBLSPublicKey
NewFilBLSPublicKeyRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilBLSPublicKey) Deref ¶
func (x *FilBLSPublicKey) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilBLSPublicKey) Free ¶
func (x *FilBLSPublicKey) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilBLSPublicKey) PassRef ¶
func (x *FilBLSPublicKey) PassRef() (*C.fil_BLSPublicKey, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilBLSPublicKey) PassValue ¶
func (x FilBLSPublicKey) PassValue() (C.fil_BLSPublicKey, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilBLSPublicKey) Ref ¶
func (x *FilBLSPublicKey) Ref() *C.fil_BLSPublicKey
Ref returns the underlying reference to C object or nil if struct is nil.
type FilBLSSignature ¶
type FilBLSSignature struct { Inner [96]byte // contains filtered or unexported fields }
FilBLSSignature as declared in filecoin-ffi/filcrypto.h:56
func NewFilBLSSignatureRef ¶
func NewFilBLSSignatureRef(ref unsafe.Pointer) *FilBLSSignature
NewFilBLSSignatureRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilBLSSignature) Deref ¶
func (x *FilBLSSignature) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilBLSSignature) Free ¶
func (x *FilBLSSignature) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilBLSSignature) PassRef ¶
func (x *FilBLSSignature) PassRef() (*C.fil_BLSSignature, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilBLSSignature) PassValue ¶
func (x FilBLSSignature) PassValue() (C.fil_BLSSignature, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilBLSSignature) Ref ¶
func (x *FilBLSSignature) Ref() *C.fil_BLSSignature
Ref returns the underlying reference to C object or nil if struct is nil.
type FilClearCacheResponse ¶
type FilClearCacheResponse struct { ErrorMsg string StatusCode FCPResponseStatus // contains filtered or unexported fields }
FilClearCacheResponse as declared in filecoin-ffi/filcrypto.h:68
func FilClearCache ¶
func FilClearCache(sectorSize uint64, cacheDirPath string) *FilClearCacheResponse
FilClearCache function as declared in filecoin-ffi/filcrypto.h:290
func NewFilClearCacheResponseRef ¶
func NewFilClearCacheResponseRef(ref unsafe.Pointer) *FilClearCacheResponse
NewFilClearCacheResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilClearCacheResponse) Deref ¶
func (x *FilClearCacheResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilClearCacheResponse) Free ¶
func (x *FilClearCacheResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilClearCacheResponse) PassRef ¶
func (x *FilClearCacheResponse) PassRef() (*C.fil_ClearCacheResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilClearCacheResponse) PassValue ¶
func (x FilClearCacheResponse) PassValue() (C.fil_ClearCacheResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilClearCacheResponse) Ref ¶
func (x *FilClearCacheResponse) Ref() *C.fil_ClearCacheResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilFauxRepResponse ¶
type FilFauxRepResponse struct { ErrorMsg string StatusCode FCPResponseStatus Commitment [32]byte // contains filtered or unexported fields }
FilFauxRepResponse as declared in filecoin-ffi/filcrypto.h:74
func FilFauxrep ¶
func FilFauxrep(registeredProof FilRegisteredSealProof, cacheDirPath string, sealedSectorPath string) *FilFauxRepResponse
FilFauxrep function as declared in filecoin-ffi/filcrypto.h:352
func NewFilFauxRepResponseRef ¶
func NewFilFauxRepResponseRef(ref unsafe.Pointer) *FilFauxRepResponse
NewFilFauxRepResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilFauxRepResponse) Deref ¶
func (x *FilFauxRepResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilFauxRepResponse) Free ¶
func (x *FilFauxRepResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilFauxRepResponse) PassRef ¶
func (x *FilFauxRepResponse) PassRef() (*C.fil_FauxRepResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilFauxRepResponse) PassValue ¶
func (x FilFauxRepResponse) PassValue() (C.fil_FauxRepResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilFauxRepResponse) Ref ¶
func (x *FilFauxRepResponse) Ref() *C.fil_FauxRepResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilFinalizeTicketResponse ¶
type FilFinalizeTicketResponse struct { StatusCode FCPResponseStatus ErrorMsg string Ticket [32]byte // contains filtered or unexported fields }
FilFinalizeTicketResponse as declared in filecoin-ffi/filcrypto.h:80
func NewFilFinalizeTicketResponseRef ¶
func NewFilFinalizeTicketResponseRef(ref unsafe.Pointer) *FilFinalizeTicketResponse
NewFilFinalizeTicketResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilFinalizeTicketResponse) Deref ¶
func (x *FilFinalizeTicketResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilFinalizeTicketResponse) Free ¶
func (x *FilFinalizeTicketResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilFinalizeTicketResponse) PassRef ¶
func (x *FilFinalizeTicketResponse) PassRef() (*C.fil_FinalizeTicketResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilFinalizeTicketResponse) PassValue ¶
func (x FilFinalizeTicketResponse) PassValue() (C.fil_FinalizeTicketResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilFinalizeTicketResponse) Ref ¶
func (x *FilFinalizeTicketResponse) Ref() *C.fil_FinalizeTicketResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGenerateDataCommitmentResponse ¶
type FilGenerateDataCommitmentResponse struct { StatusCode FCPResponseStatus ErrorMsg string CommD [32]byte // contains filtered or unexported fields }
FilGenerateDataCommitmentResponse as declared in filecoin-ffi/filcrypto.h:86
func FilGenerateDataCommitment ¶
func FilGenerateDataCommitment(registeredProof FilRegisteredSealProof, piecesPtr []FilPublicPieceInfo, piecesLen uint) *FilGenerateDataCommitmentResponse
FilGenerateDataCommitment function as declared in filecoin-ffi/filcrypto.h:359
func NewFilGenerateDataCommitmentResponseRef ¶
func NewFilGenerateDataCommitmentResponseRef(ref unsafe.Pointer) *FilGenerateDataCommitmentResponse
NewFilGenerateDataCommitmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGenerateDataCommitmentResponse) Deref ¶
func (x *FilGenerateDataCommitmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGenerateDataCommitmentResponse) Free ¶
func (x *FilGenerateDataCommitmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGenerateDataCommitmentResponse) PassRef ¶
func (x *FilGenerateDataCommitmentResponse) PassRef() (*C.fil_GenerateDataCommitmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGenerateDataCommitmentResponse) PassValue ¶
func (x FilGenerateDataCommitmentResponse) PassValue() (C.fil_GenerateDataCommitmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGenerateDataCommitmentResponse) Ref ¶
func (x *FilGenerateDataCommitmentResponse) Ref() *C.fil_GenerateDataCommitmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGeneratePieceCommitmentResponse ¶
type FilGeneratePieceCommitmentResponse struct { StatusCode FCPResponseStatus ErrorMsg string CommP [32]byte NumBytesAligned uint64 // contains filtered or unexported fields }
FilGeneratePieceCommitmentResponse as declared in filecoin-ffi/filcrypto.h:97
func FilGeneratePieceCommitment ¶
func FilGeneratePieceCommitment(registeredProof FilRegisteredSealProof, pieceFdRaw int32, unpaddedPieceSize uint64) *FilGeneratePieceCommitmentResponse
FilGeneratePieceCommitment function as declared in filecoin-ffi/filcrypto.h:367
func NewFilGeneratePieceCommitmentResponseRef ¶
func NewFilGeneratePieceCommitmentResponseRef(ref unsafe.Pointer) *FilGeneratePieceCommitmentResponse
NewFilGeneratePieceCommitmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGeneratePieceCommitmentResponse) Deref ¶
func (x *FilGeneratePieceCommitmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGeneratePieceCommitmentResponse) Free ¶
func (x *FilGeneratePieceCommitmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGeneratePieceCommitmentResponse) PassRef ¶
func (x *FilGeneratePieceCommitmentResponse) PassRef() (*C.fil_GeneratePieceCommitmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGeneratePieceCommitmentResponse) PassValue ¶
func (x FilGeneratePieceCommitmentResponse) PassValue() (C.fil_GeneratePieceCommitmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGeneratePieceCommitmentResponse) Ref ¶
func (x *FilGeneratePieceCommitmentResponse) Ref() *C.fil_GeneratePieceCommitmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGenerateWindowPoStResponse ¶
type FilGenerateWindowPoStResponse struct { ErrorMsg string ProofsLen uint ProofsPtr []FilPoStProof StatusCode FCPResponseStatus // contains filtered or unexported fields }
FilGenerateWindowPoStResponse as declared in filecoin-ffi/filcrypto.h:110
func FilGenerateWindowPost ¶
func FilGenerateWindowPost(randomness Fil32ByteArray, replicasPtr []FilPrivateReplicaInfo, replicasLen uint, proverId Fil32ByteArray) *FilGenerateWindowPoStResponse
FilGenerateWindowPost function as declared in filecoin-ffi/filcrypto.h:375
func NewFilGenerateWindowPoStResponseRef ¶
func NewFilGenerateWindowPoStResponseRef(ref unsafe.Pointer) *FilGenerateWindowPoStResponse
NewFilGenerateWindowPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGenerateWindowPoStResponse) Deref ¶
func (x *FilGenerateWindowPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGenerateWindowPoStResponse) Free ¶
func (x *FilGenerateWindowPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGenerateWindowPoStResponse) PassRef ¶
func (x *FilGenerateWindowPoStResponse) PassRef() (*C.fil_GenerateWindowPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGenerateWindowPoStResponse) PassValue ¶
func (x FilGenerateWindowPoStResponse) PassValue() (C.fil_GenerateWindowPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGenerateWindowPoStResponse) Ref ¶
func (x *FilGenerateWindowPoStResponse) Ref() *C.fil_GenerateWindowPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGenerateWinningPoStResponse ¶
type FilGenerateWinningPoStResponse struct { ErrorMsg string ProofsLen uint ProofsPtr []FilPoStProof StatusCode FCPResponseStatus // contains filtered or unexported fields }
FilGenerateWinningPoStResponse as declared in filecoin-ffi/filcrypto.h:117
func FilGenerateWinningPost ¶
func FilGenerateWinningPost(randomness Fil32ByteArray, replicasPtr []FilPrivateReplicaInfo, replicasLen uint, proverId Fil32ByteArray) *FilGenerateWinningPoStResponse
FilGenerateWinningPost function as declared in filecoin-ffi/filcrypto.h:384
func NewFilGenerateWinningPoStResponseRef ¶
func NewFilGenerateWinningPoStResponseRef(ref unsafe.Pointer) *FilGenerateWinningPoStResponse
NewFilGenerateWinningPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGenerateWinningPoStResponse) Deref ¶
func (x *FilGenerateWinningPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGenerateWinningPoStResponse) Free ¶
func (x *FilGenerateWinningPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGenerateWinningPoStResponse) PassRef ¶
func (x *FilGenerateWinningPoStResponse) PassRef() (*C.fil_GenerateWinningPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGenerateWinningPoStResponse) PassValue ¶
func (x FilGenerateWinningPoStResponse) PassValue() (C.fil_GenerateWinningPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGenerateWinningPoStResponse) Ref ¶
func (x *FilGenerateWinningPoStResponse) Ref() *C.fil_GenerateWinningPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGenerateWinningPoStSectorChallenge ¶
type FilGenerateWinningPoStSectorChallenge struct { ErrorMsg string StatusCode FCPResponseStatus IdsPtr []uint64 IdsLen uint // contains filtered or unexported fields }
FilGenerateWinningPoStSectorChallenge as declared in filecoin-ffi/filcrypto.h:124
func FilGenerateWinningPostSectorChallenge ¶
func FilGenerateWinningPostSectorChallenge(registeredProof FilRegisteredPoStProof, randomness Fil32ByteArray, sectorSetLen uint64, proverId Fil32ByteArray) *FilGenerateWinningPoStSectorChallenge
FilGenerateWinningPostSectorChallenge function as declared in filecoin-ffi/filcrypto.h:393
func NewFilGenerateWinningPoStSectorChallengeRef ¶
func NewFilGenerateWinningPoStSectorChallengeRef(ref unsafe.Pointer) *FilGenerateWinningPoStSectorChallenge
NewFilGenerateWinningPoStSectorChallengeRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGenerateWinningPoStSectorChallenge) Deref ¶
func (x *FilGenerateWinningPoStSectorChallenge) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGenerateWinningPoStSectorChallenge) Free ¶
func (x *FilGenerateWinningPoStSectorChallenge) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGenerateWinningPoStSectorChallenge) PassRef ¶
func (x *FilGenerateWinningPoStSectorChallenge) PassRef() (*C.fil_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGenerateWinningPoStSectorChallenge) PassValue ¶
func (x FilGenerateWinningPoStSectorChallenge) PassValue() (C.fil_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGenerateWinningPoStSectorChallenge) Ref ¶
func (x *FilGenerateWinningPoStSectorChallenge) Ref() *C.fil_GenerateWinningPoStSectorChallenge
Ref returns the underlying reference to C object or nil if struct is nil.
type FilGpuDeviceResponse ¶
type FilGpuDeviceResponse struct { StatusCode FCPResponseStatus ErrorMsg string DevicesLen uint DevicesPtr []string // contains filtered or unexported fields }
FilGpuDeviceResponse as declared in filecoin-ffi/filcrypto.h:131
func FilGetGpuDevices ¶
func FilGetGpuDevices() *FilGpuDeviceResponse
FilGetGpuDevices function as declared in filecoin-ffi/filcrypto.h:401
func NewFilGpuDeviceResponseRef ¶
func NewFilGpuDeviceResponseRef(ref unsafe.Pointer) *FilGpuDeviceResponse
NewFilGpuDeviceResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilGpuDeviceResponse) Deref ¶
func (x *FilGpuDeviceResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilGpuDeviceResponse) Free ¶
func (x *FilGpuDeviceResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilGpuDeviceResponse) PassRef ¶
func (x *FilGpuDeviceResponse) PassRef() (*C.fil_GpuDeviceResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilGpuDeviceResponse) PassValue ¶
func (x FilGpuDeviceResponse) PassValue() (C.fil_GpuDeviceResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilGpuDeviceResponse) Ref ¶
func (x *FilGpuDeviceResponse) Ref() *C.fil_GpuDeviceResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilHashResponse ¶
type FilHashResponse struct { Digest FilBLSDigest // contains filtered or unexported fields }
FilHashResponse as declared in filecoin-ffi/filcrypto.h:142
func FilHash ¶
func FilHash(messagePtr string, messageLen uint) *FilHashResponse
FilHash function as declared in filecoin-ffi/filcrypto.h:493
func NewFilHashResponseRef ¶
func NewFilHashResponseRef(ref unsafe.Pointer) *FilHashResponse
NewFilHashResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilHashResponse) Deref ¶
func (x *FilHashResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilHashResponse) Free ¶
func (x *FilHashResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilHashResponse) PassRef ¶
func (x *FilHashResponse) PassRef() (*C.fil_HashResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilHashResponse) PassValue ¶
func (x FilHashResponse) PassValue() (C.fil_HashResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilHashResponse) Ref ¶
func (x *FilHashResponse) Ref() *C.fil_HashResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilInitLogFdResponse ¶
type FilInitLogFdResponse struct { StatusCode FCPResponseStatus ErrorMsg string // contains filtered or unexported fields }
FilInitLogFdResponse as declared in filecoin-ffi/filcrypto.h:147
func FilInitLogFd ¶
func FilInitLogFd(logFd int32) *FilInitLogFdResponse
FilInitLogFd function as declared in filecoin-ffi/filcrypto.h:524
func NewFilInitLogFdResponseRef ¶
func NewFilInitLogFdResponseRef(ref unsafe.Pointer) *FilInitLogFdResponse
NewFilInitLogFdResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilInitLogFdResponse) Deref ¶
func (x *FilInitLogFdResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilInitLogFdResponse) Free ¶
func (x *FilInitLogFdResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilInitLogFdResponse) PassRef ¶
func (x *FilInitLogFdResponse) PassRef() (*C.fil_InitLogFdResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilInitLogFdResponse) PassValue ¶
func (x FilInitLogFdResponse) PassValue() (C.fil_InitLogFdResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilInitLogFdResponse) Ref ¶
func (x *FilInitLogFdResponse) Ref() *C.fil_InitLogFdResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPoStProof ¶
type FilPoStProof struct { RegisteredProof FilRegisteredPoStProof ProofLen uint ProofPtr string // contains filtered or unexported fields }
FilPoStProof as declared in filecoin-ffi/filcrypto.h:103
func NewFilPoStProofRef ¶
func NewFilPoStProofRef(ref unsafe.Pointer) *FilPoStProof
NewFilPoStProofRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPoStProof) AllocateProxy ¶
func (x *FilPoStProof) AllocateProxy() func()
AllocateProxy allocates a FilPoStProof proxy object in the C heap, returning a function which, when called, frees the allocated memory.
func (*FilPoStProof) Deref ¶
func (x *FilPoStProof) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPoStProof) Free ¶
func (x *FilPoStProof) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPoStProof) PassRef ¶
func (x *FilPoStProof) PassRef() (*C.fil_PoStProof, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPoStProof) PassValue ¶
func (x FilPoStProof) PassValue() (C.fil_PoStProof, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPoStProof) Ref ¶
func (x *FilPoStProof) Ref() *C.fil_PoStProof
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPrivateKeyGenerateResponse ¶
type FilPrivateKeyGenerateResponse struct { PrivateKey FilBLSPrivateKey // contains filtered or unexported fields }
FilPrivateKeyGenerateResponse as declared in filecoin-ffi/filcrypto.h:158
func FilPrivateKeyGenerate ¶
func FilPrivateKeyGenerate() *FilPrivateKeyGenerateResponse
FilPrivateKeyGenerate function as declared in filecoin-ffi/filcrypto.h:529
func FilPrivateKeyGenerateWithSeed ¶
func FilPrivateKeyGenerateWithSeed(rawSeed Fil32ByteArray) *FilPrivateKeyGenerateResponse
FilPrivateKeyGenerateWithSeed function as declared in filecoin-ffi/filcrypto.h:542
func NewFilPrivateKeyGenerateResponseRef ¶
func NewFilPrivateKeyGenerateResponseRef(ref unsafe.Pointer) *FilPrivateKeyGenerateResponse
NewFilPrivateKeyGenerateResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPrivateKeyGenerateResponse) Deref ¶
func (x *FilPrivateKeyGenerateResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPrivateKeyGenerateResponse) Free ¶
func (x *FilPrivateKeyGenerateResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPrivateKeyGenerateResponse) PassRef ¶
func (x *FilPrivateKeyGenerateResponse) PassRef() (*C.fil_PrivateKeyGenerateResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPrivateKeyGenerateResponse) PassValue ¶
func (x FilPrivateKeyGenerateResponse) PassValue() (C.fil_PrivateKeyGenerateResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPrivateKeyGenerateResponse) Ref ¶
func (x *FilPrivateKeyGenerateResponse) Ref() *C.fil_PrivateKeyGenerateResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPrivateKeyPublicKeyResponse ¶
type FilPrivateKeyPublicKeyResponse struct { PublicKey FilBLSPublicKey // contains filtered or unexported fields }
FilPrivateKeyPublicKeyResponse as declared in filecoin-ffi/filcrypto.h:169
func FilPrivateKeyPublicKey ¶
func FilPrivateKeyPublicKey(rawPrivateKeyPtr string) *FilPrivateKeyPublicKeyResponse
FilPrivateKeyPublicKey function as declared in filecoin-ffi/filcrypto.h:553
func NewFilPrivateKeyPublicKeyResponseRef ¶
func NewFilPrivateKeyPublicKeyResponseRef(ref unsafe.Pointer) *FilPrivateKeyPublicKeyResponse
NewFilPrivateKeyPublicKeyResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPrivateKeyPublicKeyResponse) Deref ¶
func (x *FilPrivateKeyPublicKeyResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPrivateKeyPublicKeyResponse) Free ¶
func (x *FilPrivateKeyPublicKeyResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPrivateKeyPublicKeyResponse) PassRef ¶
func (x *FilPrivateKeyPublicKeyResponse) PassRef() (*C.fil_PrivateKeyPublicKeyResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPrivateKeyPublicKeyResponse) PassValue ¶
func (x FilPrivateKeyPublicKeyResponse) PassValue() (C.fil_PrivateKeyPublicKeyResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPrivateKeyPublicKeyResponse) Ref ¶
func (x *FilPrivateKeyPublicKeyResponse) Ref() *C.fil_PrivateKeyPublicKeyResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPrivateKeySignResponse ¶
type FilPrivateKeySignResponse struct { Signature FilBLSSignature // contains filtered or unexported fields }
FilPrivateKeySignResponse as declared in filecoin-ffi/filcrypto.h:176
func FilPrivateKeySign ¶
func FilPrivateKeySign(rawPrivateKeyPtr string, messagePtr string, messageLen uint) *FilPrivateKeySignResponse
FilPrivateKeySign function as declared in filecoin-ffi/filcrypto.h:566
func NewFilPrivateKeySignResponseRef ¶
func NewFilPrivateKeySignResponseRef(ref unsafe.Pointer) *FilPrivateKeySignResponse
NewFilPrivateKeySignResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPrivateKeySignResponse) Deref ¶
func (x *FilPrivateKeySignResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPrivateKeySignResponse) Free ¶
func (x *FilPrivateKeySignResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPrivateKeySignResponse) PassRef ¶
func (x *FilPrivateKeySignResponse) PassRef() (*C.fil_PrivateKeySignResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPrivateKeySignResponse) PassValue ¶
func (x FilPrivateKeySignResponse) PassValue() (C.fil_PrivateKeySignResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPrivateKeySignResponse) Ref ¶
func (x *FilPrivateKeySignResponse) Ref() *C.fil_PrivateKeySignResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPrivateReplicaInfo ¶
type FilPrivateReplicaInfo struct { RegisteredProof FilRegisteredPoStProof CacheDirPath string CommR [32]byte ReplicaPath string SectorId uint64 // contains filtered or unexported fields }
FilPrivateReplicaInfo as declared in filecoin-ffi/filcrypto.h:269
func NewFilPrivateReplicaInfoRef ¶
func NewFilPrivateReplicaInfoRef(ref unsafe.Pointer) *FilPrivateReplicaInfo
NewFilPrivateReplicaInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPrivateReplicaInfo) AllocateProxy ¶
func (x *FilPrivateReplicaInfo) AllocateProxy() func()
AllocateProxy allocates a FilPrivateReplicaInfo proxy object in the C heap, returning a function which, when called, frees the allocated memory. This method exists because the default c-for-go allocation strategy allocates a C struct with a field whose values is a pointer into the Go heap, which is not permitted by the most strict CGO check (cgocheck=2).
func (*FilPrivateReplicaInfo) Deref ¶
func (x *FilPrivateReplicaInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPrivateReplicaInfo) Free ¶
func (x *FilPrivateReplicaInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPrivateReplicaInfo) PassRef ¶
func (x *FilPrivateReplicaInfo) PassRef() (*C.fil_PrivateReplicaInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPrivateReplicaInfo) PassValue ¶
func (x FilPrivateReplicaInfo) PassValue() (C.fil_PrivateReplicaInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPrivateReplicaInfo) Ref ¶
func (x *FilPrivateReplicaInfo) Ref() *C.fil_PrivateReplicaInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPublicPieceInfo ¶
type FilPublicPieceInfo struct { NumBytes uint64 CommP [32]byte // contains filtered or unexported fields }
FilPublicPieceInfo as declared in filecoin-ffi/filcrypto.h:257
func NewFilPublicPieceInfoRef ¶
func NewFilPublicPieceInfoRef(ref unsafe.Pointer) *FilPublicPieceInfo
NewFilPublicPieceInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPublicPieceInfo) Deref ¶
func (x *FilPublicPieceInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPublicPieceInfo) Free ¶
func (x *FilPublicPieceInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPublicPieceInfo) PassRef ¶
func (x *FilPublicPieceInfo) PassRef() (*C.fil_PublicPieceInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPublicPieceInfo) PassValue ¶
func (x FilPublicPieceInfo) PassValue() (C.fil_PublicPieceInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPublicPieceInfo) Ref ¶
func (x *FilPublicPieceInfo) Ref() *C.fil_PublicPieceInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type FilPublicReplicaInfo ¶
type FilPublicReplicaInfo struct { RegisteredProof FilRegisteredPoStProof CommR [32]byte SectorId uint64 // contains filtered or unexported fields }
FilPublicReplicaInfo as declared in filecoin-ffi/filcrypto.h:275
func NewFilPublicReplicaInfoRef ¶
func NewFilPublicReplicaInfoRef(ref unsafe.Pointer) *FilPublicReplicaInfo
NewFilPublicReplicaInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilPublicReplicaInfo) Deref ¶
func (x *FilPublicReplicaInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilPublicReplicaInfo) Free ¶
func (x *FilPublicReplicaInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilPublicReplicaInfo) PassRef ¶
func (x *FilPublicReplicaInfo) PassRef() (*C.fil_PublicReplicaInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilPublicReplicaInfo) PassValue ¶
func (x FilPublicReplicaInfo) PassValue() (C.fil_PublicReplicaInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilPublicReplicaInfo) Ref ¶
func (x *FilPublicReplicaInfo) Ref() *C.fil_PublicReplicaInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type FilRegisteredPoStProof ¶
type FilRegisteredPoStProof int32
FilRegisteredPoStProof as declared in filecoin-ffi/filcrypto.h:44
const ( FilRegisteredPoStProofStackedDrgWinning2KiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWinning2KiBV1 FilRegisteredPoStProofStackedDrgWinning8MiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWinning8MiBV1 FilRegisteredPoStProofStackedDrgWinning512MiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWinning512MiBV1 FilRegisteredPoStProofStackedDrgWinning32GiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWinning32GiBV1 FilRegisteredPoStProofStackedDrgWinning64GiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWinning64GiBV1 FilRegisteredPoStProofStackedDrgWindow2KiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWindow2KiBV1 FilRegisteredPoStProofStackedDrgWindow8MiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWindow8MiBV1 FilRegisteredPoStProofStackedDrgWindow512MiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWindow512MiBV1 FilRegisteredPoStProofStackedDrgWindow32GiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWindow32GiBV1 FilRegisteredPoStProofStackedDrgWindow64GiBV1 FilRegisteredPoStProof = C.fil_RegisteredPoStProof_StackedDrgWindow64GiBV1 )
FilRegisteredPoStProof enumeration from filecoin-ffi/filcrypto.h:44
type FilRegisteredSealProof ¶
type FilRegisteredSealProof int32
FilRegisteredSealProof as declared in filecoin-ffi/filcrypto.h:52
const ( FilRegisteredSealProofStackedDrg2KiBV1 FilRegisteredSealProof = C.fil_RegisteredSealProof_StackedDrg2KiBV1 FilRegisteredSealProofStackedDrg8MiBV1 FilRegisteredSealProof = C.fil_RegisteredSealProof_StackedDrg8MiBV1 FilRegisteredSealProofStackedDrg512MiBV1 FilRegisteredSealProof = C.fil_RegisteredSealProof_StackedDrg512MiBV1 FilRegisteredSealProofStackedDrg32GiBV1 FilRegisteredSealProof = C.fil_RegisteredSealProof_StackedDrg32GiBV1 FilRegisteredSealProofStackedDrg64GiBV1 FilRegisteredSealProof = C.fil_RegisteredSealProof_StackedDrg64GiBV1 )
FilRegisteredSealProof enumeration from filecoin-ffi/filcrypto.h:52
type FilSealCommitPhase1Response ¶
type FilSealCommitPhase1Response struct { StatusCode FCPResponseStatus ErrorMsg string SealCommitPhase1OutputPtr string SealCommitPhase1OutputLen uint // contains filtered or unexported fields }
FilSealCommitPhase1Response as declared in filecoin-ffi/filcrypto.h:183
func FilSealCommitPhase1 ¶
func FilSealCommitPhase1(registeredProof FilRegisteredSealProof, commR Fil32ByteArray, commD Fil32ByteArray, cacheDirPath string, replicaPath string, sectorId uint64, proverId Fil32ByteArray, ticket Fil32ByteArray, seed Fil32ByteArray, piecesPtr []FilPublicPieceInfo, piecesLen uint) *FilSealCommitPhase1Response
FilSealCommitPhase1 function as declared in filecoin-ffi/filcrypto.h:574
func NewFilSealCommitPhase1ResponseRef ¶
func NewFilSealCommitPhase1ResponseRef(ref unsafe.Pointer) *FilSealCommitPhase1Response
NewFilSealCommitPhase1ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilSealCommitPhase1Response) Deref ¶
func (x *FilSealCommitPhase1Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilSealCommitPhase1Response) Free ¶
func (x *FilSealCommitPhase1Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilSealCommitPhase1Response) PassRef ¶
func (x *FilSealCommitPhase1Response) PassRef() (*C.fil_SealCommitPhase1Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilSealCommitPhase1Response) PassValue ¶
func (x FilSealCommitPhase1Response) PassValue() (C.fil_SealCommitPhase1Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilSealCommitPhase1Response) Ref ¶
func (x *FilSealCommitPhase1Response) Ref() *C.fil_SealCommitPhase1Response
Ref returns the underlying reference to C object or nil if struct is nil.
type FilSealCommitPhase2Response ¶
type FilSealCommitPhase2Response struct { StatusCode FCPResponseStatus ErrorMsg string ProofPtr string ProofLen uint // contains filtered or unexported fields }
FilSealCommitPhase2Response as declared in filecoin-ffi/filcrypto.h:190
func FilSealCommitPhase2 ¶
func FilSealCommitPhase2(sealCommitPhase1OutputPtr string, sealCommitPhase1OutputLen uint, sectorId uint64, proverId Fil32ByteArray) *FilSealCommitPhase2Response
FilSealCommitPhase2 function as declared in filecoin-ffi/filcrypto.h:586
func NewFilSealCommitPhase2ResponseRef ¶
func NewFilSealCommitPhase2ResponseRef(ref unsafe.Pointer) *FilSealCommitPhase2Response
NewFilSealCommitPhase2ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilSealCommitPhase2Response) Deref ¶
func (x *FilSealCommitPhase2Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilSealCommitPhase2Response) Free ¶
func (x *FilSealCommitPhase2Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilSealCommitPhase2Response) PassRef ¶
func (x *FilSealCommitPhase2Response) PassRef() (*C.fil_SealCommitPhase2Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilSealCommitPhase2Response) PassValue ¶
func (x FilSealCommitPhase2Response) PassValue() (C.fil_SealCommitPhase2Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilSealCommitPhase2Response) Ref ¶
func (x *FilSealCommitPhase2Response) Ref() *C.fil_SealCommitPhase2Response
Ref returns the underlying reference to C object or nil if struct is nil.
type FilSealPreCommitPhase1Response ¶
type FilSealPreCommitPhase1Response struct { ErrorMsg string StatusCode FCPResponseStatus SealPreCommitPhase1OutputPtr string SealPreCommitPhase1OutputLen uint // contains filtered or unexported fields }
FilSealPreCommitPhase1Response as declared in filecoin-ffi/filcrypto.h:197
func FilSealPreCommitPhase1 ¶
func FilSealPreCommitPhase1(registeredProof FilRegisteredSealProof, cacheDirPath string, stagedSectorPath string, sealedSectorPath string, sectorId uint64, proverId Fil32ByteArray, ticket Fil32ByteArray, piecesPtr []FilPublicPieceInfo, piecesLen uint) *FilSealPreCommitPhase1Response
FilSealPreCommitPhase1 function as declared in filecoin-ffi/filcrypto.h:595
func NewFilSealPreCommitPhase1ResponseRef ¶
func NewFilSealPreCommitPhase1ResponseRef(ref unsafe.Pointer) *FilSealPreCommitPhase1Response
NewFilSealPreCommitPhase1ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilSealPreCommitPhase1Response) Deref ¶
func (x *FilSealPreCommitPhase1Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilSealPreCommitPhase1Response) Free ¶
func (x *FilSealPreCommitPhase1Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilSealPreCommitPhase1Response) PassRef ¶
func (x *FilSealPreCommitPhase1Response) PassRef() (*C.fil_SealPreCommitPhase1Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilSealPreCommitPhase1Response) PassValue ¶
func (x FilSealPreCommitPhase1Response) PassValue() (C.fil_SealPreCommitPhase1Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilSealPreCommitPhase1Response) Ref ¶
func (x *FilSealPreCommitPhase1Response) Ref() *C.fil_SealPreCommitPhase1Response
Ref returns the underlying reference to C object or nil if struct is nil.
type FilSealPreCommitPhase2Response ¶
type FilSealPreCommitPhase2Response struct { ErrorMsg string StatusCode FCPResponseStatus RegisteredProof FilRegisteredSealProof CommD [32]byte CommR [32]byte // contains filtered or unexported fields }
FilSealPreCommitPhase2Response as declared in filecoin-ffi/filcrypto.h:205
func FilSealPreCommitPhase2 ¶
func FilSealPreCommitPhase2(sealPreCommitPhase1OutputPtr string, sealPreCommitPhase1OutputLen uint, cacheDirPath string, sealedSectorPath string) *FilSealPreCommitPhase2Response
FilSealPreCommitPhase2 function as declared in filecoin-ffi/filcrypto.h:609
func NewFilSealPreCommitPhase2ResponseRef ¶
func NewFilSealPreCommitPhase2ResponseRef(ref unsafe.Pointer) *FilSealPreCommitPhase2Response
NewFilSealPreCommitPhase2ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilSealPreCommitPhase2Response) Deref ¶
func (x *FilSealPreCommitPhase2Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilSealPreCommitPhase2Response) Free ¶
func (x *FilSealPreCommitPhase2Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilSealPreCommitPhase2Response) PassRef ¶
func (x *FilSealPreCommitPhase2Response) PassRef() (*C.fil_SealPreCommitPhase2Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilSealPreCommitPhase2Response) PassValue ¶
func (x FilSealPreCommitPhase2Response) PassValue() (C.fil_SealPreCommitPhase2Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilSealPreCommitPhase2Response) Ref ¶
func (x *FilSealPreCommitPhase2Response) Ref() *C.fil_SealPreCommitPhase2Response
Ref returns the underlying reference to C object or nil if struct is nil.
type FilStringResponse ¶
type FilStringResponse struct { StatusCode FCPResponseStatus ErrorMsg string StringVal string // contains filtered or unexported fields }
FilStringResponse as declared in filecoin-ffi/filcrypto.h:214
func FilGetPostCircuitIdentifier ¶
func FilGetPostCircuitIdentifier(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostCircuitIdentifier function as declared in filecoin-ffi/filcrypto.h:413
func FilGetPostParamsCid ¶
func FilGetPostParamsCid(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostParamsCid function as declared in filecoin-ffi/filcrypto.h:419
func FilGetPostParamsPath ¶
func FilGetPostParamsPath(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostParamsPath function as declared in filecoin-ffi/filcrypto.h:426
func FilGetPostVerifyingKeyCid ¶
func FilGetPostVerifyingKeyCid(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostVerifyingKeyCid function as declared in filecoin-ffi/filcrypto.h:432
func FilGetPostVerifyingKeyPath ¶
func FilGetPostVerifyingKeyPath(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostVerifyingKeyPath function as declared in filecoin-ffi/filcrypto.h:439
func FilGetPostVersion ¶
func FilGetPostVersion(registeredProof FilRegisteredPoStProof) *FilStringResponse
FilGetPostVersion function as declared in filecoin-ffi/filcrypto.h:445
func FilGetSealCircuitIdentifier ¶
func FilGetSealCircuitIdentifier(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealCircuitIdentifier function as declared in filecoin-ffi/filcrypto.h:451
func FilGetSealParamsCid ¶
func FilGetSealParamsCid(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealParamsCid function as declared in filecoin-ffi/filcrypto.h:457
func FilGetSealParamsPath ¶
func FilGetSealParamsPath(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealParamsPath function as declared in filecoin-ffi/filcrypto.h:464
func FilGetSealVerifyingKeyCid ¶
func FilGetSealVerifyingKeyCid(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealVerifyingKeyCid function as declared in filecoin-ffi/filcrypto.h:470
func FilGetSealVerifyingKeyPath ¶
func FilGetSealVerifyingKeyPath(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealVerifyingKeyPath function as declared in filecoin-ffi/filcrypto.h:477
func FilGetSealVersion ¶
func FilGetSealVersion(registeredProof FilRegisteredSealProof) *FilStringResponse
FilGetSealVersion function as declared in filecoin-ffi/filcrypto.h:483
func NewFilStringResponseRef ¶
func NewFilStringResponseRef(ref unsafe.Pointer) *FilStringResponse
NewFilStringResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilStringResponse) Deref ¶
func (x *FilStringResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilStringResponse) Free ¶
func (x *FilStringResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilStringResponse) PassRef ¶
func (x *FilStringResponse) PassRef() (*C.fil_StringResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilStringResponse) PassValue ¶
func (x FilStringResponse) PassValue() (C.fil_StringResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilStringResponse) Ref ¶
func (x *FilStringResponse) Ref() *C.fil_StringResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilUnsealRangeResponse ¶
type FilUnsealRangeResponse struct { StatusCode FCPResponseStatus ErrorMsg string // contains filtered or unexported fields }
FilUnsealRangeResponse as declared in filecoin-ffi/filcrypto.h:219
func FilUnsealRange ¶
func FilUnsealRange(registeredProof FilRegisteredSealProof, cacheDirPath string, sealedSectorFdRaw int32, unsealOutputFdRaw int32, sectorId uint64, proverId Fil32ByteArray, ticket Fil32ByteArray, commD Fil32ByteArray, unpaddedByteIndex uint64, unpaddedBytesAmount uint64) *FilUnsealRangeResponse
FilUnsealRange function as declared in filecoin-ffi/filcrypto.h:617
func NewFilUnsealRangeResponseRef ¶
func NewFilUnsealRangeResponseRef(ref unsafe.Pointer) *FilUnsealRangeResponse
NewFilUnsealRangeResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilUnsealRangeResponse) Deref ¶
func (x *FilUnsealRangeResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilUnsealRangeResponse) Free ¶
func (x *FilUnsealRangeResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilUnsealRangeResponse) PassRef ¶
func (x *FilUnsealRangeResponse) PassRef() (*C.fil_UnsealRangeResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilUnsealRangeResponse) PassValue ¶
func (x FilUnsealRangeResponse) PassValue() (C.fil_UnsealRangeResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilUnsealRangeResponse) Ref ¶
func (x *FilUnsealRangeResponse) Ref() *C.fil_UnsealRangeResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilVerifySealResponse ¶
type FilVerifySealResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
FilVerifySealResponse as declared in filecoin-ffi/filcrypto.h:225
func FilVerifySeal ¶
func FilVerifySeal(registeredProof FilRegisteredSealProof, commR Fil32ByteArray, commD Fil32ByteArray, proverId Fil32ByteArray, ticket Fil32ByteArray, seed Fil32ByteArray, sectorId uint64, proofPtr string, proofLen uint) *FilVerifySealResponse
FilVerifySeal function as declared in filecoin-ffi/filcrypto.h:649
func NewFilVerifySealResponseRef ¶
func NewFilVerifySealResponseRef(ref unsafe.Pointer) *FilVerifySealResponse
NewFilVerifySealResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilVerifySealResponse) Deref ¶
func (x *FilVerifySealResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilVerifySealResponse) Free ¶
func (x *FilVerifySealResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilVerifySealResponse) PassRef ¶
func (x *FilVerifySealResponse) PassRef() (*C.fil_VerifySealResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilVerifySealResponse) PassValue ¶
func (x FilVerifySealResponse) PassValue() (C.fil_VerifySealResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilVerifySealResponse) Ref ¶
func (x *FilVerifySealResponse) Ref() *C.fil_VerifySealResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilVerifyWindowPoStResponse ¶
type FilVerifyWindowPoStResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
FilVerifyWindowPoStResponse as declared in filecoin-ffi/filcrypto.h:231
func FilVerifyWindowPost ¶
func FilVerifyWindowPost(randomness Fil32ByteArray, replicasPtr []FilPublicReplicaInfo, replicasLen uint, proofsPtr []FilPoStProof, proofsLen uint, proverId Fil32ByteArray) *FilVerifyWindowPoStResponse
FilVerifyWindowPost function as declared in filecoin-ffi/filcrypto.h:662
func NewFilVerifyWindowPoStResponseRef ¶
func NewFilVerifyWindowPoStResponseRef(ref unsafe.Pointer) *FilVerifyWindowPoStResponse
NewFilVerifyWindowPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilVerifyWindowPoStResponse) Deref ¶
func (x *FilVerifyWindowPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilVerifyWindowPoStResponse) Free ¶
func (x *FilVerifyWindowPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilVerifyWindowPoStResponse) PassRef ¶
func (x *FilVerifyWindowPoStResponse) PassRef() (*C.fil_VerifyWindowPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilVerifyWindowPoStResponse) PassValue ¶
func (x FilVerifyWindowPoStResponse) PassValue() (C.fil_VerifyWindowPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilVerifyWindowPoStResponse) Ref ¶
func (x *FilVerifyWindowPoStResponse) Ref() *C.fil_VerifyWindowPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilVerifyWinningPoStResponse ¶
type FilVerifyWinningPoStResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
FilVerifyWinningPoStResponse as declared in filecoin-ffi/filcrypto.h:237
func FilVerifyWinningPost ¶
func FilVerifyWinningPost(randomness Fil32ByteArray, replicasPtr []FilPublicReplicaInfo, replicasLen uint, proofsPtr []FilPoStProof, proofsLen uint, proverId Fil32ByteArray) *FilVerifyWinningPoStResponse
FilVerifyWinningPost function as declared in filecoin-ffi/filcrypto.h:672
func NewFilVerifyWinningPoStResponseRef ¶
func NewFilVerifyWinningPoStResponseRef(ref unsafe.Pointer) *FilVerifyWinningPoStResponse
NewFilVerifyWinningPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilVerifyWinningPoStResponse) Deref ¶
func (x *FilVerifyWinningPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilVerifyWinningPoStResponse) Free ¶
func (x *FilVerifyWinningPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilVerifyWinningPoStResponse) PassRef ¶
func (x *FilVerifyWinningPoStResponse) PassRef() (*C.fil_VerifyWinningPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilVerifyWinningPoStResponse) PassValue ¶
func (x FilVerifyWinningPoStResponse) PassValue() (C.fil_VerifyWinningPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilVerifyWinningPoStResponse) Ref ¶
func (x *FilVerifyWinningPoStResponse) Ref() *C.fil_VerifyWinningPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilWriteWithAlignmentResponse ¶
type FilWriteWithAlignmentResponse struct { CommP [32]byte ErrorMsg string LeftAlignmentUnpadded uint64 StatusCode FCPResponseStatus TotalWriteUnpadded uint64 // contains filtered or unexported fields }
FilWriteWithAlignmentResponse as declared in filecoin-ffi/filcrypto.h:245
func FilWriteWithAlignment ¶
func FilWriteWithAlignment(registeredProof FilRegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32, existingPieceSizesPtr []uint64, existingPieceSizesLen uint) *FilWriteWithAlignmentResponse
FilWriteWithAlignment function as declared in filecoin-ffi/filcrypto.h:683
func NewFilWriteWithAlignmentResponseRef ¶
func NewFilWriteWithAlignmentResponseRef(ref unsafe.Pointer) *FilWriteWithAlignmentResponse
NewFilWriteWithAlignmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilWriteWithAlignmentResponse) Deref ¶
func (x *FilWriteWithAlignmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilWriteWithAlignmentResponse) Free ¶
func (x *FilWriteWithAlignmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilWriteWithAlignmentResponse) PassRef ¶
func (x *FilWriteWithAlignmentResponse) PassRef() (*C.fil_WriteWithAlignmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilWriteWithAlignmentResponse) PassValue ¶
func (x FilWriteWithAlignmentResponse) PassValue() (C.fil_WriteWithAlignmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilWriteWithAlignmentResponse) Ref ¶
func (x *FilWriteWithAlignmentResponse) Ref() *C.fil_WriteWithAlignmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FilWriteWithoutAlignmentResponse ¶
type FilWriteWithoutAlignmentResponse struct { CommP [32]byte ErrorMsg string StatusCode FCPResponseStatus TotalWriteUnpadded uint64 // contains filtered or unexported fields }
FilWriteWithoutAlignmentResponse as declared in filecoin-ffi/filcrypto.h:252
func FilWriteWithoutAlignment ¶
func FilWriteWithoutAlignment(registeredProof FilRegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32) *FilWriteWithoutAlignmentResponse
FilWriteWithoutAlignment function as declared in filecoin-ffi/filcrypto.h:694
func NewFilWriteWithoutAlignmentResponseRef ¶
func NewFilWriteWithoutAlignmentResponseRef(ref unsafe.Pointer) *FilWriteWithoutAlignmentResponse
NewFilWriteWithoutAlignmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*FilWriteWithoutAlignmentResponse) Deref ¶
func (x *FilWriteWithoutAlignmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*FilWriteWithoutAlignmentResponse) Free ¶
func (x *FilWriteWithoutAlignmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*FilWriteWithoutAlignmentResponse) PassRef ¶
func (x *FilWriteWithoutAlignmentResponse) PassRef() (*C.fil_WriteWithoutAlignmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (FilWriteWithoutAlignmentResponse) PassValue ¶
func (x FilWriteWithoutAlignmentResponse) PassValue() (C.fil_WriteWithoutAlignmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*FilWriteWithoutAlignmentResponse) Ref ¶
func (x *FilWriteWithoutAlignmentResponse) Ref() *C.fil_WriteWithoutAlignmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.