All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.dispatch.DispatchIO Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.dispatch;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
/**/

/**/
/**/
/**/@Library("System")/**/
/**/public/**/ class /**/DispatchIO/**/ 
    extends /**/DispatchObject/**/ 
    /**//**/ {

    /**/public static class DispatchIOPtr extends Ptr {}/**/
    /**/static { Bro.bind(DispatchIO.class); }/**/
    /**/
    public static final int STREAM = 0;
    public static final int RANDOM = 1;
    public static final int STOP = 0x1;
    public static final int STRICT_INTERVAL = 0x1;
    /**/
    /**/
    protected DispatchIO() {}
    /**/
    /**//**/
    /**//**/
    /**/
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_create", optional=true)
    public static native DispatchIO create(@MachineSizedUInt long type, int fd, DispatchQueue queue, @Block VoidBlock1 cleanup_handler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_create_with_path", optional=true)
    public static native DispatchIO create(@MachineSizedUInt long type, @com.bugvm.rt.bro.annotation.Marshaler(StringMarshalers.AsUtf8ZMarshaler.class) String path, int oflag, short mode, DispatchQueue queue, @Block VoidBlock1 cleanup_handler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_create_with_io", optional=true)
    public static native DispatchIO create(@MachineSizedUInt long type, DispatchIO io, DispatchQueue queue, @Block VoidBlock1 cleanup_handler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_read", optional=true)
    public native void read(long offset, @MachineSizedUInt long length, DispatchQueue queue, @Block VoidBlock3 io_handler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_write", optional=true)
    public native void write(long offset, DispatchData data, DispatchQueue queue, @Block VoidBlock3 io_handler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_close", optional=true)
    public native void close(@MachineSizedUInt long flags);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_barrier", optional=true)
    public native void barrier(@Block Runnable barrier);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_get_descriptor", optional=true)
    public native int getDescriptor();
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_set_high_water", optional=true)
    public native void setHighWater(@MachineSizedUInt long high_water);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_set_low_water", optional=true)
    public native void setLowWater(@MachineSizedUInt long low_water);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Bridge(symbol="dispatch_io_set_interval", optional=true)
    public native void setInterval(long interval, @MachineSizedUInt long flags);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy