All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.grzeslowski.jsupla.protocol.api.structs.SuplaTimeval Maven / Gradle / Ivy

The newest version!
package pl.grzeslowski.jsupla.protocol.api.structs;

import pl.grzeslowski.jsupla.protocol.api.structs.*;
import pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize;
import static pl.grzeslowski.jsupla.protocol.api.JavaConsts.*;
import static pl.grzeslowski.jsupla.protocol.api.Preconditions.*;
import static pl.grzeslowski.jsupla.protocol.api.consts.ProtoConsts.*;

/**
 * MANUALLY ADDED!

Original code:

struct _supla_timeval {
  long tv_sec;
  long tv_usec;
};
*/ @lombok.EqualsAndHashCode @lombok.ToString @javax.annotation.Generated(value="Struct original name: _supla_timeval", date = "2024-09-06T08:44:38.134Z[Etc/UTC]") public class SuplaTimeval implements pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize { public final int tvSec; public final int tvUsec; public SuplaTimeval(int tvSec, int tvUsec) { this.tvSec = tvSec; this.tvUsec = tvUsec; } /* no call type */ @Override public int size() { return INT_SIZE // tvSec + INT_SIZE // tvUsec ; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy