Beispiel #1
0
        public void SetFileName(string value)
        {
            byte byteLen = (byte)Blitter.ToBytes(_buffer, value.ToUpper(), MaxFileNameLength, FileNameOffset);

            Blitter.ToBytes(_buffer, byteLen, FileNameLengthOffset);
            UpdateWriteRange(FileNameOffset, byteLen);
        }
Beispiel #2
0
 public void SetCreationTime(DateTime value)
 {
     UpdateWriteRange(CreationTimeOffset, Blitter.ToBytes(_buffer, value, CreationTimeOffset));
 }
Beispiel #3
0
 public void SetDataLength(ushort value)
 {
     UpdateWriteRange(DataLengthOffset, Blitter.ToBytes(_buffer, value, DataLengthOffset));
 }
Beispiel #4
0
 public void SetMarker(byte value)
 {
     UpdateWriteRange(MarkerOffset, Blitter.ToBytes(_buffer, value, MarkerOffset));
 }
Beispiel #5
0
 public void SetBlockId(ushort value)
 {
     UpdateWriteRange(BlockIdOffset, Blitter.ToBytes(_buffer, value, BlockIdOffset));
 }
Beispiel #6
0
        public string GetFileName()
        {
            byte byteCount = GetFileNameLength();

            return(Blitter.GetString(_buffer, byteCount, FileNameOffset));
        }
Beispiel #7
0
 public DateTime GetCreationTime()
 {
     return(Blitter.GetDateTime(_buffer, CreationTimeOffset));
 }
Beispiel #8
0
 public byte GetFileNameLength()
 {
     return(Blitter.GetByte(_buffer, FileNameLengthOffset));
 }
Beispiel #9
0
 public ushort GetDataLength()
 {
     return(Blitter.GetUInt16(_buffer, DataLengthOffset));
 }
Beispiel #10
0
 public ushort GetBlockId()
 {
     return(Blitter.GetUInt16(_buffer, BlockIdOffset));
 }
Beispiel #11
0
 public ushort GetObjId()
 {
     return(Blitter.GetUInt16(_buffer, ObjIdOffset));
 }
Beispiel #12
0
 public byte GetMarker()
 {
     return(Blitter.GetByte(_buffer, MarkerOffset));
 }