Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mpp Support for ByteBuffer/ InputStream and Charset #21

Open
i-walker opened this issue Oct 25, 2021 · 1 comment
Open

Mpp Support for ByteBuffer/ InputStream and Charset #21

i-walker opened this issue Oct 25, 2021 · 1 comment
Labels

Comments

@i-walker
Copy link
Member

i-walker commented Oct 25, 2021

  • these are missing as subtypes of arrow.endpoint.EndpointIO.Body previously denoted as
public data class ByteBufferBody<T>(
    override val codec: Codec<ByteBuffer, T, CodecFormat>,
    override val info: Info<T>
  ) : BinaryBody<ByteBuffer, T>

public data class InputStreamBody<T>(
    override val codec: Codec<InputStream, T, CodecFormat>,
    override val info: Info<T>
  ) : BinaryBody<InputStream, T>
  • and as subtypes of arrow.model.Body
public data class ByteBuffer(public val byteBuffer: java.nio.ByteBuffer public override val format: CodecFormat) : Body

public data class InputStream(public val inputStream: java.io.InputStream, public override val format: CodecFormat) : Body
  • Charset in kotlin.text is also teid to Jvm

As alternatives there is kotlinx.io or the ktor.io package

Any suggestions are welcome

@i-walker i-walker added the mpp label Oct 25, 2021
@i-walker
Copy link
Member Author

ktor-io is being used, until kotlinx-io is being actively worked on

ByteBuffer and InputStream can be merged to a ByteReadChannel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant