123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #if !Rar2017_64bit
- using nint = System.Int32;
- using nuint = System.UInt32;
- using size_t = System.UInt32;
- #else
- using nint = System.Int64;
- using nuint = System.UInt64;
- using size_t = System.UInt64;
- #endif
- using int64 = System.Int64;
- using uint32 = System.UInt32;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace SharpCompress.Compressors.Rar.UnpackV2017
- {
- internal partial class Unpack
- {
- private uint32 RawGet4(byte[] D, int offset)
- {
- return (uint)(D[offset]+(D[offset+1]<<8)+(D[offset+2]<<16)+(D[offset+3]<<24));
- }
- private void RawPut4(uint32 Field,byte[] D, int offset)
- {
- D[offset]=(byte)(Field);
- D[offset+1]=(byte)(Field>>8);
- D[offset+2]=(byte)(Field>>16);
- D[offset+3]=(byte)(Field>>24);
- }
- }
- }
|