mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-27 08:29:31 +00:00
19 lines
527 B
Java
Executable File
19 lines
527 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;
|
|
|
|
public DirectoryHeader (ProdosDisk parentDisk, byte[] entryBuffer)
|
|
{
|
|
super (parentDisk, entryBuffer);
|
|
|
|
entryLength = entryBuffer[31] & 0xFF;
|
|
entriesPerBlock = entryBuffer[32] & 0xFF;
|
|
fileCount = HexFormatter.intValue (entryBuffer[33], entryBuffer[34]);
|
|
}
|
|
} |