fix InputBuffer with ByteBuffer/ByteData input data