llama_copy_state_data method

int llama_copy_state_data(
  1. Pointer<llama_context> ctx,
  2. Pointer<Uint8> dst
)

Copies the state to the specified destination address. Destination needs to have allocated enough memory. Returns the number of bytes copied

Implementation

int llama_copy_state_data(
  ffi.Pointer<llama_context> ctx,
  ffi.Pointer<ffi.Uint8> dst,
) {
  return _llama_copy_state_data(
    ctx,
    dst,
  );
}