public EfsPutItemFileCommandRequest(string fileName, EfsFileFlag flags, int permission, byte[] data)
 {
     _fileName   = fileName;
     _flags      = flags;
     _permission = permission;
     _data       = data;
 }
Example #2
0
 public QcdmEfsFileStream(QcdmManager manager, string fileName, EfsFileFlag flags, int permission)
 {
     _file       = -1;
     _fileName   = fileName;
     _flags      = flags;
     _permission = permission;
     _manager    = manager;
     _position   = 0;
 }
Example #3
0
        public QcdmEfsFileStream OpenFile(string filePath, EfsFileFlag flags, int permission)
        {
            if (_manager.TryGetTarget(out var manager))
            {
                var file = new QcdmEfsFileStream(manager, filePath, flags, permission);
                file.Open();
                return(file);
            }

            return(null);
        }
Example #4
0
 public void PutItemFile(string path, EfsFileFlag flags, int permission, byte[] data)
 {
     InitializeIfNeed();
     if (_manager.TryGetTarget(out var manager))
     {
         if (manager.IsOpen)
         {
             var request  = new EfsPutItemFileCommandRequest(path, flags, permission, data);
             var response = (EfsPutItemFileCommandResponse)manager.ExecuteQcdmCommandRequest(request);
             QcdmEfsErrorsUtils.ThrowQcdmEfsErrorsIfNeed(response.Error);
         }
     }
 }
 public EfsOpenFileCommandRequest(string fileName, EfsFileFlag flags, int permission)
 {
     _fileName   = fileName;
     _flags      = flags;
     _permission = permission;
 }