shithub: nineswift

ref: 960f567d8fa9d3a294e9b2c081f4eede5108b5d0
dir: /Sources/NineSwift/Handle.swift/

View raw version
//
//  Handle.swift
//
//  Created by halfwit on 2024-01-22.
//

import Foundation

/* Handle to an open nine file */
public struct Handle {
    let name: String
    var fid: UInt32
    var iounit: UInt32
    var tag: UInt16
    
    init(fid: UInt32, tag: UInt16, name: String) {
        self.fid = fid
        self.tag = tag
        self.name = name
        self.iounit = 8168
    }
}