MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / readShareDataLength

Function readShareDataLength

src/utils/shareDataCodec.ts:118–126  ·  view source on GitHub ↗
(
  view: DataView,
  offset: number,
  lengthFieldBytes: ShareDataLengthBytes
)

Source from the content-addressed store, hash-verified

116}
117
118function readShareDataLength(
119 view: DataView,
120 offset: number,
121 lengthFieldBytes: ShareDataLengthBytes
122): number {
123 return lengthFieldBytes === 4
124 ? view.getUint32(offset, true)
125 : view.getUint16(offset, true);
126}
127
128/**
129 * Encode combined share data into one hash parameter.

Callers 1

decodeShareDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected