public void copyFrom(PacketBuffer other) { this.bytes = other.bytes; this.stream = other.stream; this.frame = other.frame; }