mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-01 18:41:27 +00:00
23 lines
858 B
Java
Executable File
23 lines
858 B
Java
Executable File
package com.bytezone.diskbrowser.prodos;
|
|
|
|
import com.bytezone.diskbrowser.utilities.HexFormatter;
|
|
|
|
// -----------------------------------------------------------------------------------//
|
|
abstract class DirectoryHeader extends CatalogEntry
|
|
// -----------------------------------------------------------------------------------//
|
|
{
|
|
final int entryLength;
|
|
final int entriesPerBlock;
|
|
final int fileCount;
|
|
|
|
// ---------------------------------------------------------------------------------//
|
|
DirectoryHeader (ProdosDisk parentDisk, byte[] entryBuffer)
|
|
// ---------------------------------------------------------------------------------//
|
|
{
|
|
super (parentDisk, entryBuffer);
|
|
|
|
entryLength = entryBuffer[31] & 0xFF;
|
|
entriesPerBlock = entryBuffer[32] & 0xFF;
|
|
fileCount = HexFormatter.intValue (entryBuffer[33], entryBuffer[34]);
|
|
}
|
|
} |