Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

475 B
Raw Blame
import ExpoModulesCore

// Sync avoids a thread hop when reading Uint8Array; each window takes only a few ms.
public class OrcaGzipUtf8CodecModule: Module {
  public func definition() -> ModuleDefinition {
    Name("OrcaGzipUtf8Codec")

    Function("gunzip") { (input: Data, outputLimit: Int) throws -> Data in
      try gunzipBounded(input, outputLimit: outputLimit)
    }

    Function("decodeUtf8") { (input: Data) -> String? in
      decodeStrictUtf8(input)
    }
  }
}