class SemanticTextDocument
source · line 7public
public class SemanticTextDocument public constructor(length: Long) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
Retained endpoints only; the actual editor remains the sole owner of text.
function close
source · line 41public
public override fun close(): Unit
- Overrides
close
function mapOffsets
source · line 23public
@Unsafe
public fun mapOffsets(length: Long, mapper: FunPtr<(Ptr<Unit>, Long, Int) -> Long>, context: Ptr<Unit>): Unit
A synchronous pure mapper; it must not reenter this document or call UI operations.
parameter length
source · line 25public
length: Long
parameter context
source · line 27public
context: Ptr<Unit>
parameter mapper
source · line 26public
mapper: FunPtr<(Ptr<Unit>, Long, Int) -> Long>
property isClosed
source · line 10public
public val isClosed: Boolean
get: public read-only
getter get
source · line 10public
get(): Boolean
constructor constructor
source · line 7public
constructor(length: Long)
parameter length
source · line 7public
length: Long
function reset
source · line 15public
public fun reset(length: Long): Unit
parameter length
source · line 15public
length: Long