serve-d v0.7.0-beta.7 (2021-07-14T18:52:03Z)
Dub
Repo
Document.offsetToBytes
served
lsp
textdocumentmanager
Document
Converts an LSP offset to a byte offset for using for example in array slicing.
struct
Document
const
size_t
offsetToBytes
(
size_t
offset
)
Meta
Source
See Implementation
served
lsp
textdocumentmanager
Document
constructors
this
functions
applyChange
bytesToOffset
bytesToPosition
clone
eolAt
getLanguageId
length
lineAt
lineAtScope
lineByteRangeAt
lineColumnBytesToPosition
movePositionBytes
nextPositionBytes
offsetToBytes
offsetToPosition
positionToBytes
positionToOffset
rawText
setContent
wordRangeAt
static functions
nullDocument
variables
languageId
uri
version_
Converts an LSP offset to a byte offset for using for example in array slicing.