gfsppieceop

package
v0.2.3-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GfSpPieceOp

type GfSpPieceOp struct {
}

func (*GfSpPieceOp) ChallengePieceKey

func (p *GfSpPieceOp) ChallengePieceKey(objectID uint64, segmentIdx uint32, replicateIdx int32) string

func (*GfSpPieceOp) ECPieceKey

func (p *GfSpPieceOp) ECPieceKey(objectID uint64, segmentIdx uint32, replicateIdx uint32) string

func (*GfSpPieceOp) ECPieceSize

func (p *GfSpPieceOp) ECPieceSize(payloadSize uint64, segmentIdx uint32, maxSegmentSize uint64, dataChunkNum uint32) int64

func (*GfSpPieceOp) MaxSegmentPieceSize

func (p *GfSpPieceOp) MaxSegmentPieceSize(payloadSize uint64, maxSegmentSize uint64) int64

func (*GfSpPieceOp) ParseChallengeIdx added in v0.2.3

func (p *GfSpPieceOp) ParseChallengeIdx(challengeKey string) (uint32, int32, error)

func (*GfSpPieceOp) ParseECPieceKeyIdx added in v0.2.3

func (p *GfSpPieceOp) ParseECPieceKeyIdx(ECPieceKey string) (uint32, int32, error)

func (*GfSpPieceOp) ParseSegmentIdx added in v0.2.3

func (p *GfSpPieceOp) ParseSegmentIdx(segmentKey string) (uint32, error)

func (*GfSpPieceOp) SegmentPieceCount

func (p *GfSpPieceOp) SegmentPieceCount(payloadSize uint64, maxSegmentSize uint64) uint32

func (*GfSpPieceOp) SegmentPieceKey

func (p *GfSpPieceOp) SegmentPieceKey(objectID uint64, segmentIdx uint32) string

func (*GfSpPieceOp) SegmentPieceSize

func (p *GfSpPieceOp) SegmentPieceSize(payloadSize uint64, segmentIdx uint32, maxSegmentSize uint64) int64

Jump to

Keyboard shortcuts

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