diff --git a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx index 174718ac12..bc6d985254 100644 --- a/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx +++ b/content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/500-upgrading-to-prisma-6.mdx @@ -217,12 +217,6 @@ const buffer: Buffer = Buffer.from([1, 2, 3, 4]); const uint8Array: Uint8Array = buffer; // No conversion needed ``` -If you need a copy of the data (to avoid shared memory): - -```ts -const uint8ArrayCopy: Uint8Array = new Uint8Array(buffer); -``` - ### Conversion from Uint8Array to Buffer You can create a `Buffer` from a `Uint8Array` using `Buffer.from`: @@ -232,7 +226,6 @@ const uint8Array: Uint8Array = new Uint8Array([1, 2, 3, 4]); const buffer: Buffer = Buffer.from(uint8Array.buffer); ``` - #### Before