public byte[] toBytes() {
		byte[] bytes = new byte[buffer.length + 4];
		System.arraycopy(buffer, 0, bytes, 4, buffer.length);
		BigEndianDataConverter.INSTANCE.putInt(bytes, 0, blockIndex);
		return bytes;
	}
Get block as byte array suitable for use in block stream and
reconstruction.
@return block as byte array
Ghidra/Framework/DB/src/main/java/db/buffers/BufferFileBlock.java