package com.github.mjdev.libaums.driver.scsi.commands;

import com.github.mjdev.libaums.driver.scsi.commands.CommandBlockWrapper;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public class ScsiInquiry extends CommandBlockWrapper {
    private static final byte LENGTH = 6;
    private static final byte OPCODE = 18;
    private byte allocationLength;

    public ScsiInquiry(byte b) {
        super(b, CommandBlockWrapper.Direction.IN, (byte) 0, (byte) 6);
        this.allocationLength = b;
    }

    @Override // com.github.mjdev.libaums.driver.scsi.commands.CommandBlockWrapper
    public void serialize(ByteBuffer byteBuffer) {
        super.serialize(byteBuffer);
        byteBuffer.put((byte) 18);
        byteBuffer.put((byte) 0);
        byteBuffer.put((byte) 0);
        byteBuffer.put((byte) 0);
        byteBuffer.put(this.allocationLength);
    }
}
