public static long DecodeInt64(byte[] buffer, ref int offset) { var value = Bits.ToInt64(buffer, offset); offset += 8; return value; }