public synchronized byte[] ToByteArray() throws IOException {
   byte[] Result = new byte[ValueSize];
   byte[] BA = TGeographServerServiceOperation.ConvertDoubleToBEByteArray(Timestamp);
   System.arraycopy(BA, 0, Result, 0, BA.length);
   BA = TGeographServerServiceOperation.ConvertInt64ToBEByteArray(Value);
   System.arraycopy(BA, 0, Result, 8, BA.length);
   return Result;
 }