File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 30
30
end
31
31
32
32
methods (Static )
33
- % Read the given file into memory as an array of bytes (uint8)
34
- % and then construct a RecordBatchStreamReader from the bytes.
35
- function reader = FromBytes (filename )
33
+
34
+ % Read the given file into memory as an array of bytes (uint8) .
35
+ function bytes = readBytes (filename )
36
36
if ismissing(filename )
37
37
% Simulate the behavior of fromFile when a filename
38
38
% that is a missing string value is supplied.
47
47
error(message(" MATLAB:validators:mustBeNonzeroLengthText" , " " ))
48
48
end
49
49
fclose(fid );
50
+ end
51
+
52
+ % Read the given file into memory as bytes and then construct a
53
+ % RecordBatchStreamReader from the bytes.
54
+ function reader = FromBytes(filename )
55
+ bytes = tRecordBatchStreamReader .readBytes(filename );
50
56
reader = arrow .io .ipc .RecordBatchStreamReader .fromBytes(bytes );
51
57
end
58
+
52
59
end
53
60
54
61
methods (TestClassSetup )
You can’t perform that action at this time.
0 commit comments