示例#1
0
    public void OnUriCreate(Gnome.Vfs.Handle handle, Gnome.Vfs.Result result)
    {
        Console.WriteLine("Async.Create result\t= {0} ({1})", Gnome.Vfs.Vfs.ResultToString(result), result);

        if (result != Gnome.Vfs.Result.Ok)
        {
            return;
        }
        UTF8Encoding utf8 = new UTF8Encoding();

        byte [] buffer = utf8.GetBytes("Testing 1 2 3 asdlfjalsjdfksjdf \nGustavo Giráldez\n");
        Gnome.Vfs.AsyncWriteCallback writeCallback = new Gnome.Vfs.AsyncWriteCallback(OnUriWrite);
        Gnome.Vfs.Async.Write(handle, out buffer [0], (uint)buffer.Length, writeCallback);
    }
示例#2
0
 public void OnUriCreate (Gnome.Vfs.Handle handle, Gnome.Vfs.Result result)
 {
         Console.WriteLine ("Async.Create result\t= {0} ({1})", Gnome.Vfs.Vfs.ResultToString (result), result);
                 
         if (result != Gnome.Vfs.Result.Ok)
                 return;
         UTF8Encoding utf8 = new UTF8Encoding ();
         byte [] buffer = utf8.GetBytes ("Testing 1 2 3 asdlfjalsjdfksjdf \nGustavo Giráldez\n");
         Gnome.Vfs.AsyncWriteCallback writeCallback = new Gnome.Vfs.AsyncWriteCallback (OnUriWrite);
         Gnome.Vfs.Async.Write (handle, out buffer [0], (uint) buffer.Length, writeCallback);
 }