allocate static method

Pointer<IscTimestampTz> allocate(
  1. int date,
  2. int time,
  3. int timeZone
)

Allocates (in native memory) and initializes a new IscTimestampTz structure.

Implementation

static Pointer<IscTimestampTz> allocate(int date, int time, int timeZone) {
  Pointer<IscTimestampTz> ptr = mem.allocate<IscTimestampTz>(
    sizeOf<IscTimestampTz>(),
  );
  ptr.ref
    ..date = date
    ..time = time
    ..timeZone = timeZone;
  return ptr;
}