Comments (3)
It returns an array for me.
Node version: v0.10.12
Protobuf Version: v0.8.6
t.proto
message TT {
repeated string str = 1;
optional uint32 uu = 2;
}
test.js
var fs = require('fs');
var util = require('util');
var assert = require('assert');
var Schema = require('protobuf').Schema;
var schema = new Schema(fs.readFileSync('t.desc'))
var tt = schema['TT']
var msg = {str: ['abc', '123'], uu: 23}
var buf = tt.serialize(msg)
var m = tt.parse(buf)
assert(util.isArray(m.str));
from protobuf.
Thank you, Adam.
I will try to upgrade to the latest version of Node and perform the same tests. Give me a few days to do that. I will close the issue then.
Stan
from protobuf.
Tested with node v0.10.22 and protobuf v 0.8.7 and it works as expected.
from protobuf.
Related Issues (20)
- Install errors HOT 2
- How to process bytes field HOT 6
- Can't install on v0.10.15
- Can't install on v0.10.15
- Is there a way to read service rpc defination from desc? HOT 1
- wrong place. sorry
- Are there any plans on adding node 0.10 to the engines? HOT 1
- How to read enum types and their values?
- Add support for node.js v0.11.13 / v0.12 HOT 7
- Error when attempting to build a 32 bit version HOT 1
- Error occurred when I serialize a PB and turned it to base64 and decode it and then parse. HOT 1
- [] serialize, then parse, but not get [], is {}, why? HOT 2
- Compile for io.js 1.0.4 HOT 3
- Does not support parameter name like "a_b_c"
- Malformed descriptor HOT 1
- make: *** [Release/obj.target/protobuf_for_node/protobuf_for_node.o] Error HOT 1
- on MacOS, node v4.4.2:: [Release/obj.target/protobuf_for_node/protobuf_for_node.o] Error 1 HOT 1
- Fails to build on OSX HOT 1
- Builds broken on macOS Mojave
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf.