Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/node:tty/WriteStream/writeMwritemethod
tty.WriteStream.writewrite(buffer: string | Uint8ArrayArrayBufferLike>,cb?: (err?: null | Error) => void): boolean;Sends data on the socket. The second parameter specifies the encoding in the case of a string. It defaults to UTF8 encoding.Returns true if the entire data was flushed successfully to the kernel buffer. Returns false if all or part of the data was queued in user memory.'drain' will be emitted when the buffer is again free.The optional callback parameter will be executed when the data is finally written out, which may not be immediately.See Writable stream write() method for more information.write(str: string | Uint8ArrayArrayBufferLike>,encoding?: BufferEncoding,cb?: (err?: null | Error) => void): boolean;Sends data on the socket. The second parameter specifies the encoding in the case of a string. It defaults to UTF8 encoding.Returns true if the entire data was flushed successfully to the kernel buffer. Returns false if all or part of the data was queued in user memory.'drain' will be emitted when the buffer is again free.The optional callback parameter will be executed when the data is finally written out, which may not be immediately.See Writable stream write() method for more information.@param encodingOnly used when data is string.Referenced typesclass Uint8ArrayTArrayBuffer extends ArrayBufferLike = ArrayBufferLike>A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.readonly [Symbol.toStringTag]: 'Uint8Array'readonly buffer: TArrayBufferThe ArrayBuffer instance referenced by the array.readonly byteLength: numberThe length in bytes of the array.readonly byteOffset: numberThe offset in bytes of the array.readonly BYTES_PER_ELEMENT: numberThe size in bytes of each element in the array.readonly length: numberThe length of the array.[Symbol.iterator](): ArrayIteratornumber>;at(index: number): undefined | number;Returns the item located at the specified index.@param indexThe zero-based index of the desired code unit. A negative index will count back from the last item.copyWithin(target: number,start: number,end?: number): this;Returns the this object after copying a section of the array identified by start and end to the same array starting at position target@param targetIf target is negative, it is treated as length+target where length is the length of the array.@param startIf start is negative, it is treated as length+start. If end is negative, it is treated as length+end.@param endIf not specified, length of the this object is used as its default value.entries(): ArrayIterator[number, number]>;Returns an array of key, value pairs for every entry in the arrayevery(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): boolean;Determines whether all the members of an array satisfy the specified test.@param predicateA function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.fill(value: number,start?: number,end?: number): this;Changes all array elements from start to end index to a static value and returns the modified array@param valuevalue to fill array section with@param startindex to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.@param endindex to stop filling the array at. If end is negative, it is treated as length+end.filter(predicate: (value: number, index: number, array: this) => any,thisArg?: any): Uint8ArrayArrayBuffer>;Returns the elements of an array that meet the condition specified in a callback function.@param predicateA function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.find(predicate: (value: number, index: number, obj: this) => boolean,thisArg?: any): undefined | number;Returns the value of the first element in the array where predicate is true, and undefined otherwise.@param predicatefind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findIndex(predicate: (value: number, index: number, obj: this) => boolean,thisArg?: any): number;Returns the index of the first element in the array where predicate is true, and -1 otherwise.@param predicatefind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findLastS extends number>(predicate: (value: number, index: number, array: this) => value is S,thisArg?: any): undefined | S;Returns the value of the last element in the array where predicate is true, and undefined otherwise.@param predicatefindLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findLast(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): undefined | number;findLastIndex(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): number;Returns the index of the last element in the array where predicate is true, and -1 otherwise.@param predicatefindLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.forEach(callbackfn: (value: number, index: number, array: this) => void,thisArg?: any): void;Performs the specified action for each element in an array.@param callbackfnA function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.includes(searchElement: number,fromIndex?: number): boolean;Determines whether an array includes a certain element, returning true or false as appropriate.@param searchElementThe element to search for.@param fromIndexThe position in this array at which to begin searching for searchElement.indexOf(searchElement: number,fromIndex?: number): number;Returns the index of the first occurrence of a value in an array.@param searchElementThe value to locate in the array.@param fromIndexThe array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.join(separator?: string): string;Adds all the elements of an array separated by the specified separator string.@param separatorA string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.keys(): ArrayIteratornumber>;Returns an list of keys in the arraylastIndexOf(searchElement: number,fromIndex?: number): number;Returns the index of the last occurrence of a value in an array.@param searchElementThe value to locate in the array.@param fromIndexThe array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.map(callbackfn: (value: number, index: number, array: this) => number,thisArg?: any): Uint8ArrayArrayBuffer>;Calls a defined callback function on each element of an array, and returns an array that contains the results.@param callbackfnA function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number,initialValue: number): number;reduceU>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U,initialValue: U): U;Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.@param initialValueIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number,initialValue: number): number;reduceRightU>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U,initialValue: U): U;Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.@param initialValueIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.reverse(): this;Reverses the elements in an Array.set(array: ArrayLikenumber>,offset?: number): void;Sets a value or an array of values.@param arrayA typed or untyped array of values to set.@param offsetThe index in the current array at which the values are to be written.setFromBase64(base64: string,offset?: number): { read: number; written: number };Set the contents of the Uint8Array from a base64 encoded string@param base64The base64 encoded string to decode into the array@param offsetOptional starting index to begin setting the decoded bytes (default: 0)setFromHex(hex: string): { read: number; written: number };Set the contents of the Uint8Array from a hex encoded string@param hexThe hex encoded string to decode into the array. The string must have an even number of characters, be valid hexadecimal characters and contain no whitespace.slice(start?: number,end?: number): Uint8ArrayArrayBuffer>;Returns a section of an array.@param startThe beginning of the specified portion of the array.@param endThe end of the specified portion of the array. This is exclusive of the element at the index 'end'.some(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): boolean;Determines whether the specified callback function returns true for any element of an array.@param predicateA function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.sort(compareFn?: (a: number, b: number) => number): this;Sorts an array.@param compareFnFunction used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending order.[11,2,22,1].sort((a, b) => a - b) subarray(begin?: number,end?: number): Uint8ArrayTArrayBuffer>;Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.@param beginThe index of the beginning of the array.@param endThe index of the end of the array.toBase64(options?: { alphabet: 'base64' | 'base64url'; omitPadding: boolean }): string;Convert the Uint8Array to a base64 encoded string@returnsThe base64 encoded string representation of the Uint8ArraytoHex(): string;Convert the Uint8Array to a hex encoded string@returnsThe hex encoded string representation of the Uint8ArraytoLocaleString(): string;Converts a number to a string by using the current locale.toLocaleString(locales: string | string[],options?: NumberFormatOptions): string;toReversed(): Uint8ArrayArrayBuffer>;Copies the array and returns the copy with the elements in reverse order.toSorted(compareFn?: (a: number, b: number) => number): Uint8ArrayArrayBuffer>;Copies and sorts the array.@param compareFnFunction used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise. If omitted, the elements are sorted in ascending order.const myNums = Uint8Array.from([11, 2, 22, 1]); myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] toString(): string;Returns a string representation of an array.valueOf(): this;Returns the primitive value of the specified object.values(): ArrayIteratornumber>;Returns an list of values in the arraywith(index: number,value: number): Uint8ArrayArrayBuffer>;Copies the array and inserts the given number at the provided index.@param indexThe index of the value to overwrite. If the index is negative, then it replaces from the end of the array.@param valueThe value to insert into the copied array.@returnsA copy of the original array with the inserted value.Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San FranciscoWe're hiring →智能索引记录
-
2026-03-03 03:42:40
电商商城
成功
标题:音频防雷器怎么样 - 京东
简介:京东是专业的音频防雷器网上购物商城,为您提供音频防雷器价格图片信息、音频防雷器怎么样的用户评论、音频防雷器精选导购、更多
-
2026-03-03 03:12:54
综合导航
成功
标题:AI智能索引
简介:kilofirewolf鐨勪釜浜鸿祫鏂 ,瀛︽硶缃 /> <title>kilofirewolf鐨勪釜浜鸿祫鏂 - 瀛
-
2026-03-02 14:49:37
游戏娱乐
成功
标题:城邦争霸1.0终极无敌版,城邦争霸1.0终极无敌版小游戏,4399小游戏 www.4399.com
简介:城邦争霸1.0终极无敌版在线玩,城邦争霸1.0终极无敌版下载, 城邦争霸1.0终极无敌版攻略秘籍.更多城邦争霸1.0终极
-
2026-03-03 03:09:14
电商商城
成功
标题:裙裤夏短2013怎么样 - 京东
简介:京东是专业的裙裤夏短2013网上购物商城,为您提供裙裤夏短2013价格图片信息、裙裤夏短2013怎么样的用户评论、裙裤夏
-
2026-03-03 04:14:34
综合导航
成功
标题:第18章 深海的凝视_逆袭:我在希腊神话世界打器晚成_0ri_新笔趣阁(56xu.com)
简介:逆袭:我在希腊神话世界打器晚成无防盗章节,作者0ri,第18章 深海的凝视内容简要:赫菲斯托斯此刻正站在熔炉核心的观察台
-
2026-03-02 14:05:42
图片素材
成功
标题:五年级说明文作文650字 五年级650字说明文作文大全-作文网
简介:作文网优秀五年级说明文650字作文大全,包含五年级说明文650字作文素材,五年级说明文650字作文题目、美文范文,作文网
-
2026-03-02 20:15:47
综合导航
成功
标题:거산고구마 상품 후기 달콤하고 쫀득해요
简介:거산고구마 자연 그대로의 달콤함, 신선한 맛으로 고객 만족이 높아요
-
2026-03-02 14:04:38
综合导航
成功
标题:PR Newswire: press release distribution, targeting, monitoring and marketing PR Newswire
简介:PR Newswire’s news distribution, targeting, monitoring and m
-
2026-03-02 14:09:24
图片素材
成功
标题:笔记的作文50字 描写笔记的作文 关于笔记的作文-作文网
简介:作文网精选关于笔记的50字作文,包含笔记的作文素材,关于笔记的作文题目,以笔记为话题的50字作文大全,作文网原创名师点评
-
2026-03-02 22:14:57
综合导航
成功
标题:马宝取名易琳,马宝宝取名字大全女孩子? - 吉吉算命网
简介:【导读】吉吉算命网分享:“马宝取名易琳”,“以及马宝宝取名字大全女孩子”的相关问答。目录:1、易琳博名字寓意是什么2、有
-
2026-03-02 19:55:31
综合导航
成功
标题:PerformanceNodeEntry.duration property Node.js perf_hooks module Bun
简介:API documentation for property node:perf_hooks.PerformanceNo
-
2026-03-02 12:39:40
综合导航
成功
标题:Videojuegos de estrategia: sitio oficial de EA
简介:Explora los videojuegos de estrategia de Electronic Arts, un
-
2026-03-03 00:35:38
视频影音
成功
标题:《Der rasende Lokalreporter》1969电视剧集在线观看完整版剧情 - xb1
简介:Der rasende Lokalreporter(1969)电视剧集免费在线观看完整版剧情介绍,Der rasende
-
2026-03-03 04:26:45
综合导航
成功
标题:VKãã©ã³Eï¼Nï¼ï¼2022å¹´3æ8æ¥ä»¥åã«ãç³ãè¾¼ã¿ã®ã客ãã¾ï¼ æéã»å²å¼ï¼ã¹ãã¼ããã©ã³ã»æºå¸¯é»è©± au
简介:4G LTEã±ã¼ã¿ã¤åãã®æéãã©ã³ãVKãã©ã³Eï¼
-
2026-03-02 20:59:38
游戏娱乐
成功
标题:冰汽时代2运输道路怎么建造-运输道路建造方法介绍_3DM单机
简介:《冰汽时代2》中的运输道路是游戏里非常重要的设施,有了运输道路才可以运输各种资源到主城里面,而运输道路想要建造可以先破霜
-
2026-03-03 03:51:53
教育培训
成功
标题:美丽小学作文300字(优选3篇)
简介:在学习、工作或生活中,大家都尝试过写作文吧,作文是通过文字来表达一个主题意义的记叙方法。你知道作文怎样写才规范吗?下面是
-
2026-03-02 12:36:05
综合导航
成功
标题:Schaeffler Germany
简介:Schaeffler has been driving forward groundbreaking invention
-
2026-03-02 22:17:30
综合导航
成功
标题:Leopard Mobile Games Online - 4J.Com
简介:There are 1 Mobile games related to Leopard on 4J.com. Click
-
2026-03-02 14:06:26
教育培训
成功
标题:(实用)雪中即景作文15篇
简介:在学习、工作或生活中,大家都有写作文的经历,对作文很是熟悉吧,作文一定要做到主题集中,围绕同一主题作深入阐述,切忌东拉西
-
2026-03-03 04:31:58
综合导航
成功
标题:404 - NS6.com
简介:找不到网页
-
2026-03-03 03:07:11
教育培训
成功
标题:成人高考专升本网 - 2025年成考专升本_成人专升本
简介:成人高考网发布各地成考政策,提供成考报名、报名时间、招生院校、招生专业、准考证打印、历年真题、成绩查询、录取查询、录取分
-
2026-03-03 04:34:15
综合导航
成功
标题:XS: Forex Trading & CFDs Broker Online FX Trading Platform
简介:Discover the leading online forex trading platform at XS. Tr
-
2026-03-02 12:37:14
教育培训
成功
标题:顽强的小草小学作文
简介:在日常学习、工作和生活中,大家都跟作文打过交道吧,作文是通过文字来表达一个主题意义的记叙方法。为了让您在写作文时更加简单
-
2026-03-03 03:32:41
美食菜谱
成功
标题:NS6.com
简介:NS6.com 让您在一个链接中分享您所有的互联网内容、文章、食谱、网站、作品集、社交媒体帖子等等。
-
2026-03-03 03:50:59
图片素材
成功
标题:大理石进口瓷为了诠释出风格旅店般的气派帝谷设计__别墅设计图
简介:居住成员:夫妻、女儿装潢费用:-房屋平数:220平设计风格:新古典房屋类型:别墅房屋状况:新成屋图片提供:帝谷室内装修设
-
2026-03-03 03:44:16
房产家居
成功
标题:墙纸广告语-励志一生
简介:墙纸广告语_ 墙纸广告语 1、家居添色彩,壁丽您最爱。 2、美丽环绕我的家。 3、给墙壁穿上美丽的衣服。 4、
-
2026-03-02 21:00:47
综合导航
成功
标题:é¸ èçæ¼é³_é¸ èçææ_é¸ èçç¹ä½_è¯ç»ç½
简介:è¯ç»ç½é¸ èé¢é,ä»ç»é¸ è,é¸ èçæ¼é³,é¸ èæ¯
-
2026-03-02 12:21:06
教育培训
成功
标题:有你,真好作文【集合6篇】
简介:在平平淡淡的学习、工作、生活中,大家都尝试过写作文吧,作文是人们把记忆中所存储的有关知识、经验和思想用书面形式表达出来的
-
2026-03-02 12:11:00
电商商城
成功
标题:招商银行空中理财(招行理财知乎)_火必 Huobi交易所
简介:今天给各位分享招商银行空中理财的知识,其中也会对招行理财知乎进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现
-
2026-03-03 00:54:08
教育培训
成功
标题:【精选】爷爷的生日作文300字4篇
简介:在日复一日的学习、工作或生活中,大家总免不了要接触或使用作文吧,写作文可以锻炼我们的独处习惯,让自己的心静下来,思考自己