file.dg

file.dg

  • 名前がかぶっているので新しく作ったfile interface

# ファイル内容

  • 2020/01/14現在
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
typedef struct file <Impl> {
    union Data* file;
    int          ref;   // reference count
    char         readable;
    char         writable;
    unsigned int off;
    struct stat* st;
    char* addr;
    int n;
    __code stat(Impl* file, struct stat* st, __code next(...));
    __code read(Impl* file, char* addr, __code next(...));
    __code write(Impl* file, char* addr, int n, __code next(...));
    __code close(Impl* file,__code next(...));
} file;

# UML

@startuml interface File { ..Data.. +union Data* file +union Data* impl +int ref +char readable +char writable +unsigned int off +struct stat* st +char* addr +int n ..CodeGear.. __code stat() __code read() __code write() __code close() } @enduml

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy