From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.devel Subject: Re: Question: estimating size of a buffer when written to file? Date: Wed, 8 Dec 2021 17:09:30 +0000 Message-ID: <56D9185A-AD99-4FCA-89B7-A3EEB62ED654@mit.edu> References: <3703D806-12C4-4EE6-ADB8-8A006D7AFC35@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31305"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 08 18:12:40 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mv0Ui-0007yv-2R for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 18:12:40 +0100 Original-Received: from localhost ([::1]:41098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv0Uh-0001es-1U for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 12:12:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0Sm-0007II-Vr for emacs-devel@gnu.org; Wed, 08 Dec 2021 12:10:41 -0500 Original-Received: from outgoing-exchange-1.mit.edu ([18.9.28.15]:35429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv0Sk-0005Nb-Gk for emacs-devel@gnu.org; Wed, 08 Dec 2021 12:10:40 -0500 Original-Received: from oc11exedge1.exchange.mit.edu (OC11EXEDGE1.EXCHANGE.MIT.EDU [18.9.3.17]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 1B8H8mEh002815; Wed, 8 Dec 2021 12:10:34 -0500 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by oc11exedge1.exchange.mit.edu (18.9.3.17) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 8 Dec 2021 12:08:56 -0500 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by oc11expo16.exchange.mit.edu (18.9.4.47) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 8 Dec 2021 12:09:30 -0500 Original-Received: from oc11expo16.exchange.mit.edu ([18.9.4.47]) by oc11expo16.exchange.mit.edu ([18.9.4.47]) with mapi id 15.00.1497.023; Wed, 8 Dec 2021 12:09:30 -0500 Thread-Topic: Question: estimating size of a buffer when written to file? Thread-Index: AQHX7EjlwCPF1gKWbkGi0Xok3EUrdqwo0nBcgABViQA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [128.12.11.144] Content-ID: <0441B2B52CBDA848883DF6634135F36F@exchange.mit.edu> Received-SPF: pass client-ip=18.9.28.15; envelope-from=qhong@mit.edu; helo=outgoing-exchange-1.mit.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281370 Archived-At: PiBIb3cgJ2JvdXQgeW91ciBmaXJzdCBlbmNvZGUgdGhlIGJ1ZmZlcidzIGNvbnRlbnQgYW5kIHRo ZW4gd3JpdGUgaXQNCj4gaW5zdGVhZCBvZiByZWx5aW5nIG9uIHRoZSB3cml0ZSB0byBkbyB0aGUg ZW5jb2Rpbmc/DQo+IFRoaXMgd2F5IHlvdSBnZXQgdG8gc2VlIHRoZSBzaXplIHRyaXZpYWxseS4N CkkganVzdCBmb3VuZCB0aGUgZnVuY3Rpb24gZW5jb2RlLWNvZGluZy1yZWdpb24sIEkgbmV2ZXIg a25ldyBpdCBleGlzdHMsIHRoYW5rcyENClRoZSBsb2cgd2lsbCBldmVudHVhbGx5IGdldHMgd3Jp dHRlbiBvdXQgc28gdGhpcyBpcyBnb29kIGVub3VnaC4NCg0KQlRXLCBhZnRlciBzZWNvbmQgdGhv dWdodCwgSSB0aGluayB0aGlzIGlzIHByb2JhYmx5IGEgcHJlbWF0dXJlIG9wdGltaXphdGlvbi4N Cg0KV2hhdCBhYm91dCBub3QgY2FyZSBhYm91dCBsb2NraW5nIGF0IGFsbCBpbiB0aGUga3Ytc3Rv cmUgQVBJcyBhbmQgbGV0DQpwYWNrYWdlIGF1dGhvciBkbyBpdD8NCg0KT24gdGhlIG90aGVyIGhh bmQsIEnigJltIGN1cnJlbnRseSBpbXBsZW1lbnRpbmcgYSBoaWdoIGxldmVsIHBlcnNpc3RlbnQt dmFyaWFibGUNCkFQSSB0aGF0IHJ1bnMgaW4gaWRsZSB0aW1lci4gSSBjYW4gZWFzaWx5IGxvY2sv dW5sb2NrIG9ubHkgb25jZSBldmVyeSBpZGxlIHRpbWVyDQpldmVudCAoaW5zdGVhZCBvZiBiZWZv cmUvYWZ0ZXIgZXZlcnkga3YtcHV0KSBhbmQgbm93IHRoZSBjb3N0IHNob3VsZCBiZQ0KbmVnbGln aWJsZS4=