Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Placing byte buffer into string

X-BeenThere: protobuf@googlegroups.com
Received: by 10.231.55.32 with SMTP id s32ls560725ibg.0.p; Sun, 14 Feb 2010 
	14:34:15 -0800 (PST)
Received: by 10.231.168.11 with SMTP id s11mr328273iby.9.1266186855397;
        Sun, 14 Feb 2010 14:34:15 -0800 (PST)
Received: by 10.231.168.11 with SMTP id s11mr328272iby.9.1266186855380;
        Sun, 14 Feb 2010 14:34:15 -0800 (PST)
Return-Path: <stas.os...@gmail.com>
Received: from mail-yw0-f157.google.com (mail-yw0-f157.google.com [209.85.211.157])
        by gmr-mx.google.com with ESMTP id 25si654662iwn.14.2010.02.14.14.34.15;
        Sun, 14 Feb 2010 14:34:15 -0800 (PST)
Received-SPF: pass (google.com: domain of stas.os...@gmail.com designates 209.85.211.157 as permitted sender) client-ip=209.85.211.157;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stas.os...@gmail.com designates 209.85.211.157 as permitted sender) smtp.mail=stas.os...@gmail.com
Received: by mail-yw0-f157.google.com with SMTP id 29so12559971ywh.23
        for <protobuf@googlegroups.com>; Sun, 14 Feb 2010 14:34:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.150.65.4 with SMTP id n4mr330240yba.8.1266186855230; Sun, 14 
	Feb 2010 14:34:15 -0800 (PST)
Date: Sun, 14 Feb 2010 14:34:15 -0800 (PST)
In-Reply-To: <11752F66-E095-485A-A09A-8F2474955F16@mit.edu>
X-IP: 213.8.59.59
References: <b224d9b7-cb92-4201-a6dd-4ee61eef4941@r33g2000yqb.googlegroups.com> 
	<66234b1b-6f18-423f-bf29-3aa048f68f15@f8g2000yqn.googlegroups.com> 
	<11752F66-E095-485A-A09A-8F2474955F16@mit.edu>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) 
	Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Message-ID: <4b07b46c-e17f-4dcf-a23e-4c20e5528f2b@j31g2000yqa.googlegroups.com>
Subject: Re: Placing byte buffer into string
From: SyRenity <stas.os...@gmail.com>
To: Protocol Buffers <protobuf@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks.

On Feb 15, 12:25=A0am, Evan Jones <ev...@MIT.EDU> wrote:
> On Feb 14, 2010, at 17:23 , SyRenity wrote:
>
> > Actually, answering myself it seems to be as simple as: =A0
> > sData.assign(buffer, size); //Where size is the full buffer size
>
> Yes, that works. See the following for more help:
>
> http://www.sgi.com/tech/stl/basic_string.html
>
> Evan
>
> --
> Evan Joneshttp://evanjones.ca/