프로퍼티 | 타입 | 설명 | |
---|---|---|---|
BuildChunkCheckSums | void | ||
DistributedItemData | NetworkCommsDotNet | ||
InitialiseChunkPositionLengthDict | void |
메소드 | 설명 | |
---|---|---|
CopyTo ( Stream destinationStream ) : void |
Copies data specified by start and length properties from internal stream to the provided stream.
|
|
Dispose ( bool forceDispose ) : void |
Disposes the internal stream. If StreamTools.ThreadSafeStream.DiposeInnerStreamOnDispose is false, forceDispose must be true to dispose of the internal stream.
|
|
DistributedItemData ( DataBuildMode dataBuildMode, Stream>.Dictionary |
Initialise the item data using existing chunk streams. Build mode must be to blocks.
|
|
DistributedItemData ( |
Initialise the item data from an assembly config
|
|
DistributedItemData ( string itemIdentifier, DataBuildMode dataBuildMode, Stream itemDataStream, bool enableChunkChecksum = false ) : NetworkCommsDotNet |
Initialise the item data using an existing stream. If the build mode is to blocks the itemDataStream is broken into chunks.
|
|
GetChunkStream ( int chunkIndex ) : |
Return a StreamSendWrapper corresponding with the desired chunk
|
|
GetDataAsSingleStream ( ) : |
Get a single threadsafe stream containing all item data
|
|
MD5 ( ) : string |
Return the MD5 of the whole item data
|
|
MD5 ( int chunkIndex ) : string |
Return the MD5 of the specified chunk
|
|
SetData ( string itemIdentifier, Stream itemDataStream ) : void |
Sets the item data using the provided data stream. Useful for setting data after deserialisation
|
|
ToArray ( ) : byte[] |
Returns data for the entire item as byte[]
|
|
UpdateBuildTarget ( DataBuildMode newDataBuildMode ) : void |
Updates the ItemBuildTarget
|
|
Write ( int chunkIndex, byte chunkData ) : void |
Writes the provided buffer to the data starting at the provided position within the item data
|
메소드 | 설명 | |
---|---|---|
BuildChunkCheckSums ( ) : void |
Uses the loaded stream and builds individual chunk checksums
|
|
DistributedItemData ( ) : NetworkCommsDotNet |
Private constructor for deserialisation
|
|
InitialiseChunkPositionLengthDict ( ) : void |
Calculates the corresponding chunk positions and lengths when this item is deserialised
|
public CopyTo ( Stream destinationStream ) : void | ||
destinationStream | Stream | The destination stream for the item data |
리턴 | void |
public Dispose ( bool forceDispose ) : void | ||
forceDispose | bool | If true the internal stream will be disposed regardless of |
리턴 | void |
public DistributedItemData ( DataBuildMode dataBuildMode, Stream>.Dictionary |
||
dataBuildMode | DataBuildMode | |
itemDataStreams | Stream>.Dictionary | |
enableChunkChecksum | bool | |
리턴 | NetworkCommsDotNet |
public DistributedItemData ( |
||
assemblyConfig | ||
리턴 | NetworkCommsDotNet |
public DistributedItemData ( string itemIdentifier, DataBuildMode dataBuildMode, Stream itemDataStream, bool enableChunkChecksum = false ) : NetworkCommsDotNet | ||
itemIdentifier | string | |
dataBuildMode | DataBuildMode | |
itemDataStream | Stream | |
enableChunkChecksum | bool | |
리턴 | NetworkCommsDotNet |
public GetChunkStream ( int chunkIndex ) : |
||
chunkIndex | int | |
리턴 |
public GetDataAsSingleStream ( ) : |
||
리턴 |
public SetData ( string itemIdentifier, Stream itemDataStream ) : void | ||
itemIdentifier | string | |
itemDataStream | Stream | |
리턴 | void |
public UpdateBuildTarget ( DataBuildMode newDataBuildMode ) : void | ||
newDataBuildMode | DataBuildMode | The new DataBuildMode to use |
리턴 | void |
public Write ( int chunkIndex, byte chunkData ) : void | ||
chunkIndex | int | |
chunkData | byte | |
리턴 | void |