using System;
using System.IO;
namespace Paxer;
class Core
{
public static void writeFile(FileStream _target, string root, string sub_path)
{
// What is origin?
string full_path = Path.Combine(root, sub_path);
FileInfo file_info = new FileInfo(full_path);
FileStream _from = new FileStream(full_path, FileMode.Open);
// Lenghts
long path_len = sub_path.Length;
byte[] path_blen = BitConverter.GetBytes(path_len);
long len = file_info.Length;
byte[] blen = BitConverter.GetBytes(len);
// Write
byte b;
// What to do here ???
}
}
using System;
using System.IO;
namespace Paxer;
class Core
{
public static void writeFile(FileStream _target, string root, string sub_path)
{
// What is origin?
string full_path = Path.Combine(root, sub_path);
FileInfo file_info = new FileInfo(full_path);
FileStream _from = new FileStream(full_path, FileMode.Open);
// Lenghts
long path_len = sub_path.Length;
byte[] path_blen = BitConverter.GetBytes(path_len);
long len = file_info.Length;
byte[] blen = BitConverter.GetBytes(len);
// Write
byte b;
// What to do here ???
}
}