long candy ready to test
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using Inspectron.Fastbuffer.Interfaces;
|
||||
using OpenCvSharp;
|
||||
using Serilog;
|
||||
|
||||
namespace Inspectron.Fastbuffer.Filesystems;
|
||||
|
||||
public class DirectFilesystem:IFilesystem
|
||||
{
|
||||
public void Write(string path, byte[] data)
|
||||
public void Write(string path, Mat data)
|
||||
{
|
||||
// ensure path
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(path));
|
||||
File.WriteAllBytes(path, data);
|
||||
var bytes = data.ToBytes();
|
||||
File.WriteAllBytes(path, bytes);
|
||||
}
|
||||
|
||||
public byte[] Read(string path)
|
||||
|
||||
Reference in New Issue
Block a user