Esempio n. 1
0
 /// <summary>
 /// Get short value
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public short GetShort(string name)
 {
     byte[] b = get_field(name, FIELD_TYPE_SHORT);
     return((b == null) ? DEFAULT_SHORT : VSLib.ConvertByteToShort(b));
 }
Esempio n. 2
0
 /// <summary>
 /// Read short
 /// </summary>
 /// <param name="address"></param>
 /// <returns></returns>
 public short ReadShort(long address)
 {
     return(VSLib.ConvertByteToShort(ReadBytes(address, 2)));
 }
Esempio n. 3
0
 /// <summary>
 /// Read short
 /// </summary>
 /// <returns></returns>
 public short ReadShort(long offset = -1)
 {
     return(VSLib.ConvertByteToShort(this.ReadBytes(offset, 2)));
 }