Example #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);
        }
Example #2
0
 public void SetCreationTime(DateTime value)
 {
     UpdateWriteRange(CreationTimeOffset, Blitter.ToBytes(_buffer, value, CreationTimeOffset));
 }
Example #3
0
 public void SetDataLength(ushort value)
 {
     UpdateWriteRange(DataLengthOffset, Blitter.ToBytes(_buffer, value, DataLengthOffset));
 }
Example #4
0
 public void SetMarker(byte value)
 {
     UpdateWriteRange(MarkerOffset, Blitter.ToBytes(_buffer, value, MarkerOffset));
 }
Example #5
0
 public void SetBlockId(ushort value)
 {
     UpdateWriteRange(BlockIdOffset, Blitter.ToBytes(_buffer, value, BlockIdOffset));
 }
Example #6
0
        public string GetFileName()
        {
            byte byteCount = GetFileNameLength();

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