From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luiji Maryo Newsgroups: gmane.lisp.guile.user Subject: Some I/O Questions Date: Thu, 9 Feb 2012 22:50:05 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1328899030 24097 80.91.229.3 (10 Feb 2012 18:37:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 18:37:10 +0000 (UTC) To: Guile Mailing List Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Feb 10 19:37:09 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvvLJ-0002X8-Ha for guile-user@m.gmane.org; Fri, 10 Feb 2012 19:37:09 +0100 Original-Received: from localhost ([::1]:45517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvvLI-0004S8-OZ for guile-user@m.gmane.org; Fri, 10 Feb 2012 13:37:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvhUv-0000LO-7u for guile-user@gnu.org; Thu, 09 Feb 2012 22:50:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvhUu-0002ce-4N for guile-user@gnu.org; Thu, 09 Feb 2012 22:50:09 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:36980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvhUu-0002cF-1v for guile-user@gnu.org; Thu, 09 Feb 2012 22:50:08 -0500 Original-Received: by ghrr18 with SMTP id r18so1575577ghr.0 for ; Thu, 09 Feb 2012 19:50:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=gW9K7SJ9jEx1b4o+ORPot2cjcAsffi3ioxg9ZpVInOg=; b=ulh1Du2dYsp16DXp/0NKqCIqmCQOhvdRnyAQmf6b0w+r8yUvjJ7OJA4hVuYzr/Zm0o kh0MMXgkMVejVmlogbdGt5kWw/47o6BeXjQRNJhcqtiYvnXZG7uk0vyFJOF7wGZsqRws P5PdLfh4gCFjomivsnLtFBi+O1SqH2JmZ4OwE= Original-Received: by 10.236.181.37 with SMTP id k25mr6306353yhm.105.1328845805695; Thu, 09 Feb 2012 19:50:05 -0800 (PST) Original-Received: by 10.147.82.10 with HTTP; Thu, 9 Feb 2012 19:50:05 -0800 (PST) X-Google-Sender-Auth: Vdg7o_iKf9AtiOMM_d8mf_xtBoc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 X-Mailman-Approved-At: Fri, 10 Feb 2012 13:37:03 -0500 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9261 Archived-At: Hello, I have some questions regarding Guile I/O and byte order. 1. Is there an I/O function for reading a fixed set of bytes into a buffer, i.e. if I wanted to read a 56-byte string from a binary archive? 2. Is there a way to specifically read a 8/16/32/64-bit string from a file/port? 3. Is there a built-in function for converting between byte orders (i.e. BSD-style htobe32 and such) or must I implement them myself? 4. Is writing an archive manager using Guile for implementing archive formats a bad idea to start with? Thank you for your time, - LM http://entertainingsoftware.com/