TryReadBeUInt16() public static method

public static TryReadBeUInt16 ( byte img, long offset, ushort &value ) : bool
img byte
offset long
value ushort
return bool
コード例 #1
0
 public bool TryReadBeUInt16(out ushort us)
 {
     if (!MemoryArea.TryReadBeUInt16(bytes, (uint)off, out us))
     {
         return(false);
     }
     off += 2;
     return(true);
 }
コード例 #2
0
 public bool TryPeekBeUInt16(int offset, out ushort value)
 {
     return(MemoryArea.TryReadBeUInt16(bytes, offset + off, out value));
 }