Skip to content

Instantly share code, notes, and snippets.

@Morfly
Created July 15, 2021 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/0b0414a9c35b7f64e886d4d6250890a4 to your computer and use it in GitHub Desktop.
Save Morfly/0b0414a9c35b7f64e886d4d6250890a4 to your computer and use it in GitHub Desktop.
OutputStream write utility function
class FunctionProcessor(...) : SymbolProcessor {
operator fun OutputStream.plusAssign(str: String) {
this.write(str.toByteArray())
}
override fun process(resolver: Resolver): List<KSAnnotated> { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment