@libpdf/core 0.2.9 → 0.2.11

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.
package/dist/index.d.mts CHANGED
@@ -49,7 +49,10 @@ declare class ByteWriter {
49
49
  writeUtf8(str: string): void;
50
50
  /**
51
51
  * Get final bytes.
52
- * Returns a copy (slice) so the internal buffer can be garbage collected.
52
+ *
53
+ * If the internal buffer is exactly the right size, returns it directly
54
+ * (zero-copy). Otherwise returns a trimmed copy so the oversized buffer
55
+ * can be garbage collected.
53
56
  *
54
57
  * Note: ByteWriter is single-use. Do not write after calling toBytes().
55
58
  */