Input Buffer and Output Buffer, just like Java ByteBuffer