Beamable SDK
Static Public Member Functions | Public Attributes | Properties | List of all members
Beamable.Server.Editor.Uploader.FileChunk Class Reference

One chunk of an upload. More...

Static Public Member Functions

static async Task< FileChunkFromParent (Stream parent, long length)
 Create a FileChunk from a parent stream, using the stream's position and the supplied length as range parameters. More...
 

Public Attributes

readonly bool IsLast
 
readonly long Start
 
readonly long Length
 
readonly Stream Stream
 
readonly long FullLength
 

Properties

long End [get]
 

Detailed Description

One chunk of an upload.

Member Function Documentation

◆ FromParent()

static async Task< FileChunk > Beamable.Server.Editor.Uploader.FileChunk.FromParent ( Stream  parent,
long  length 
)
inlinestatic

Create a FileChunk from a parent stream, using the stream's position and the supplied length as range parameters.

Parameters
parentStream to build from.
lengthMaximum chunk length.
Returns
Resulting chunk with range information.

The documentation for this class was generated from the following file: