class FirmwareImage implements Chunk.Chunkable {

    public byte[] metadata() {
        ByteBuffer buffer = ByteBuffer.allocate(12);
        buffer.put(intToTwoBytes(intVersion(), Constants.CC2540_BYTE_ORDER));
        buffer.put(intToTwoBytes(length(), Constants.CC2540_BYTE_ORDER));
        buffer.put(uniqueID());
        buffer.put(reserved());
        return buffer.array();
    }

    public  FirmwareImage(byte[] rawData, String filename);

}