ReadCompressedChunkHeader() public method

public ReadCompressedChunkHeader ( ByteArrayReader reader, uint flags, int uncompressedSize, int compressedSize ) : System.Threading.Tasks.Task
reader UpkManager.Domain.Helpers.ByteArrayReader
flags uint
uncompressedSize int
compressedSize int
return System.Threading.Tasks.Task
コード例 #1
0
    public virtual async Task ReadCompressedChunk(ByteArrayReader reader) {
      UncompressedOffset = reader.ReadInt32();
      UncompressedSize   = reader.ReadInt32();

      CompressedOffset = reader.ReadInt32();
      CompressedSize   = reader.ReadInt32();

      Header = new DomainCompressedChunkHeader();

      await Header.ReadCompressedChunkHeader(reader.Branch(CompressedOffset), 1, UncompressedSize, CompressedSize);
    }
コード例 #2
0
        public virtual async Task ReadCompressedChunk(ByteArrayReader reader)
        {
            UncompressedOffset = reader.ReadInt32();
            UncompressedSize   = reader.ReadInt32();

            CompressedOffset = reader.ReadInt32();
            CompressedSize   = reader.ReadInt32();

            Header = new DomainCompressedChunkHeader();

            await Header.ReadCompressedChunkHeader(reader.Branch(CompressedOffset), 1, UncompressedSize, CompressedSize);
        }
コード例 #3
0
    public override async Task ReadCompressedChunk(ByteArrayReader reader) {
      BulkDataFlags = reader.ReadUInt32();

      UncompressedSize = reader.ReadInt32();

      CompressedSize   = reader.ReadInt32();
      CompressedOffset = reader.ReadInt32();

      if (((BulkDataCompressionTypes)BulkDataFlags & NothingToDo) > 0) return;

      Header = new DomainCompressedChunkHeader();

      await Header.ReadCompressedChunkHeader(reader, BulkDataFlags, UncompressedSize, CompressedSize);
    }
コード例 #4
0
        public override async Task ReadCompressedChunk(ByteArrayReader reader)
        {
            BulkDataFlags = reader.ReadUInt32();

            UncompressedSize = reader.ReadInt32();

            CompressedSize   = reader.ReadInt32();
            CompressedOffset = reader.ReadInt32();

            if (((BulkDataCompressionTypes)BulkDataFlags & NothingToDo) > 0)
            {
                return;
            }

            Header = new DomainCompressedChunkHeader();

            await Header.ReadCompressedChunkHeader(reader, BulkDataFlags, UncompressedSize, CompressedSize);
        }