I am trying to create an hmac in a multiplatform p...
# squarelibraries
c
I am trying to create an hmac in a multiplatform project with okio, and I am unable to create a
BufferedSink
I'm using version
3.2.0
and trying to use the
Sink.buffer()
method to create a buffered sink, but gradle keeps saying
.buffer
is an unresolved reference. Any idea what might be going on?
c
Looks like you’re using it as a static method?
buffer
is an extension function so you’ll need to do:
sink.buffer()
c
Oh duh. How might I create a simple sink?
m
Buffer()
c
That looks like it will do the trick! Thank you for the help!