File tree 2 files changed +27
-27
lines changed
2 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -98,33 +98,6 @@ class ModuleWrap;
98
98
class Environment ;
99
99
class Realm ;
100
100
101
- enum class FsStatsOffset {
102
- kDev = 0 ,
103
- kMode ,
104
- kNlink ,
105
- kUid ,
106
- kGid ,
107
- kRdev ,
108
- kBlkSize ,
109
- kIno ,
110
- kSize ,
111
- kBlocks ,
112
- kATimeSec ,
113
- kATimeNsec ,
114
- kMTimeSec ,
115
- kMTimeNsec ,
116
- kCTimeSec ,
117
- kCTimeNsec ,
118
- kBirthTimeSec ,
119
- kBirthTimeNsec ,
120
- kFsStatsFieldsNumber
121
- };
122
-
123
- // Stat fields buffers contain twice the number of entries in an uv_stat_t
124
- // because `fs.StatWatcher` needs room to store 2 `fs.Stats` instances.
125
- constexpr size_t kFsStatsBufferLength =
126
- static_cast <size_t >(FsStatsOffset::kFsStatsFieldsNumber ) * 2 ;
127
-
128
101
// Disables zero-filling for ArrayBuffer allocations in this scope. This is
129
102
// similar to how we implement Buffer.allocUnsafe() in JS land.
130
103
class NoArrayBufferZeroFillScope {
Original file line number Diff line number Diff line change @@ -13,6 +13,33 @@ namespace fs {
13
13
14
14
class FileHandleReadWrap ;
15
15
16
+ enum class FsStatsOffset {
17
+ kDev = 0 ,
18
+ kMode ,
19
+ kNlink ,
20
+ kUid ,
21
+ kGid ,
22
+ kRdev ,
23
+ kBlkSize ,
24
+ kIno ,
25
+ kSize ,
26
+ kBlocks ,
27
+ kATimeSec ,
28
+ kATimeNsec ,
29
+ kMTimeSec ,
30
+ kMTimeNsec ,
31
+ kCTimeSec ,
32
+ kCTimeNsec ,
33
+ kBirthTimeSec ,
34
+ kBirthTimeNsec ,
35
+ kFsStatsFieldsNumber
36
+ };
37
+
38
+ // Stat fields buffers contain twice the number of entries in an uv_stat_t
39
+ // because `fs.StatWatcher` needs room to store 2 `fs.Stats` instances.
40
+ constexpr size_t kFsStatsBufferLength =
41
+ static_cast <size_t >(FsStatsOffset::kFsStatsFieldsNumber ) * 2 ;
42
+
16
43
class BindingData : public SnapshotableObject {
17
44
public:
18
45
explicit BindingData (Environment* env, v8::Local<v8::Object> wrap);
You can’t perform that action at this time.
0 commit comments