Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} feross / buffer Public Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 259 Star 1.9k Code Issues 44 Pull requests 11 Actions Security and quality 0 Insights Additional navigation options Code Issues Pull requests Actions Security and quality Insights Pull requests: feross/buffer Labels 6 Milestones 0 Labels 6 Milestones 0 New pull request New 11 Open 171 Closed 11 Open 171 Closed Author Filter by author Loading Uh oh! There was an error while loading. Please reload this page. author: Filter by this user Label Filter by label Loading Uh oh! There was an error while loading. Please reload this page. Projects Filter by project Loading Uh oh! There was an error while loading. Please reload this page. Milestones Filter by milestone Loading Uh oh! There was an error while loading. Please reload this page. Reviews Filter by reviews No reviews Review required Approved review Changes requested Assignee Filter by who’s assigned Assigned to nobody Loading Uh oh! There was an error while loading. Please reload this page. assignee: Filter by this user Sort Sort by Newest Oldest Most commented Least commented Recently updated Least recently updated Best match Most reactions 👍 👎 😄 🎉 😕 ❤️ 🚀 👀 Pull requests list lastIndexOf: fix byteOffset when encoding passed as second arg #369 opened Mar 14, 2025 by arantes555 Loading… Update hexSlice to use TypedArrays and TextDecoder for large speed gains #367 opened Dec 12, 2024 by jawj Loading… 1 Fix bundle.run link #363 opened Oct 8, 2024 by canerder Loading… 3 Added lowercase Uint notation to types #360 opened May 28, 2024 by Le0X8 Loading… Add string decoding benchmarks #352 opened Feb 5, 2024 by chjj Contributor Loading… 4 Avoid augmenting subarrays post-ES2016 #351 opened Feb 4, 2024 by chjj Contributor Loading… Drop base64-js dependency, and optimise Buffer.write #349 opened Feb 4, 2024 by chjj Contributor Loading… 10 Implement Buffer.copyBytesFrom #348 opened Feb 3, 2024 by chjj Contributor Loading… 10 Incorrect toString for invalid UTF8 multibyte codepoints #305 opened Dec 8, 2021 by mischnic Contributor Loading… Use TextDecoder for toString('utf8') #286 opened Jan 7, 2021 by mischnic Contributor Loading… 1 4 More test updates #190 opened Mar 2, 2018 by vmx Contributor Loading… ProTip! Find all pull requests that aren't related to any open issues with -linked:issue. You can’t perform that action at this time.