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

js.web.streams.UnderlyingByteSource Maven / Gradle / Ivy

package js.web.streams;

import js.extras.JsEnum;
import js.lang.Any;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;


public interface UnderlyingByteSource extends Any {
    @JSProperty
    int getAutoAllocateChunkSize();

    @JSProperty
    void setAutoAllocateChunkSize(int autoAllocateChunkSize);

    @JSProperty
    @Nullable
    ReadableStreamErrorCallback getCancel();

    @JSProperty
    void setCancel(ReadableStreamErrorCallback cancel);

    @JSProperty
    @Nullable
    ReadableByteStreamControllerCallback getPull();

    @JSProperty
    void setPull(ReadableByteStreamControllerCallback pull);

    @JSProperty
    @Nullable
    ReadableByteStreamControllerCallback getStart();

    @JSProperty
    void setStart(ReadableByteStreamControllerCallback start);

    @JSProperty
    Type getType();

    @JSProperty
    void setType(Type type);

    abstract class Type extends JsEnum {
        public final static Type BYTES = JsEnum.of("bytes");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy