@dcl/sdk 7.0.0-2625231661.commit-ab8ccee → 7.0.0-2637795719.commit-7dd5361

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,9 +113,19 @@ declare function createByteBuffer(options?: CreateByteBufferOptions): {
113
113
  */
114
114
  size(): number;
115
115
  /**
116
- * @returns The subarray from 0 to offset.
116
+ * Take care using this function, if you modify the data after, the
117
+ * returned subarray will change too. If you'll modify the content of the
118
+ * bytebuffer, maybe you want to use toCopiedBinary()
119
+ *
120
+ * @returns The subarray from 0 to offset as reference.
117
121
  */
118
122
  toBinary(): Uint8Array;
123
+ /**
124
+ * Safe copied buffer of the current data of ByteBuffer
125
+ *
126
+ * @returns The subarray from 0 to offset.
127
+ */
128
+ toCopiedBinary(): Uint8Array;
119
129
  writeBuffer(value: Uint8Array, writeLength?: boolean): void;
120
130
  writeFloat32(value: number): void;
121
131
  writeFloat64(value: number): void;