calloc method

Pointer<TtfSubString> calloc()

Implementation

Pointer<TtfSubString> calloc() {
  final pointer = ffi.calloc<TtfSubString>();
  pointer.ref.flags = flags;
  pointer.ref.offset = offset;
  pointer.ref.length = length;
  pointer.ref.lineIndex = lineIndex;
  pointer.ref.clusterIndex = clusterIndex;
  pointer.ref.rect.x = rect.x;
  pointer.ref.rect.y = rect.y;
  pointer.ref.rect.w = rect.w;
  pointer.ref.rect.h = rect.h;
  return pointer;
}