Updated RS317 plugin, changed raw ByteBuffer to custom buffer