package com.github.mjdev.libaums.partition;

import com.github.mjdev.libaums.driver.BlockDeviceDriver;
import com.github.mjdev.libaums.partition.mbr.MasterBootRecord;
import java.io.IOException;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public class PartitionTableFactory {
    public static PartitionTable createPartitionTable(BlockDeviceDriver blockDeviceDriver) throws IOException {
        ByteBuffer byteBufferAllocate = ByteBuffer.allocate(512);
        blockDeviceDriver.read(0L, byteBufferAllocate);
        return MasterBootRecord.read(byteBufferAllocate);
    }
}
