Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
432f3f26
Commit
432f3f26
authored
Feb 28, 2015
by
loverszhaokai
Committed by
Wouter van Oortmerssen
Mar 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Copyright headers
Change-Id: I106de8985cea572590d49c896b72c54f33e73bd2
parent
6ccdfff0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
16 deletions
+112
-16
FlatBufferConstants.cs
net/FlatBuffers/FlatBufferConstants.cs
+17
-1
AssemblyInfo.cs
net/FlatBuffers/Properties/AssemblyInfo.cs
+18
-2
idl_gen_general.cpp
src/idl_gen_general.cpp
+2
-2
Assert.cs
tests/FlatBuffers.Test/Assert.cs
+17
-1
Program.cs
tests/FlatBuffers.Test/Program.cs
+17
-1
AssemblyInfo.cs
tests/FlatBuffers.Test/Properties/AssemblyInfo.cs
+22
-6
JavaTest.sh
tests/JavaTest.sh
+3
-3
go_test.go
tests/go_test.go
+16
-0
No files found.
net/FlatBuffers/FlatBufferConstants.cs
View file @
432f3f26
using
System
;
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
...
...
net/FlatBuffers/Properties/AssemblyInfo.cs
View file @
432f3f26
using
System.Reflection
;
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
...
...
@@ -10,7 +26,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FlatBuffers")]
[assembly: AssemblyCopyright("Copyright © 201
4
Google Inc")]
[assembly: AssemblyCopyright("Copyright © 201
5
Google Inc")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
...
...
src/idl_gen_general.cpp
View file @
432f3f26
...
...
@@ -324,11 +324,11 @@ static void GenStruct(const LanguageParameters &lang, const Parser &parser,
// of a FlatBuffer
std
::
string
method_name
=
FunctionStart
(
lang
,
'G'
)
+
"etRootAs"
+
struct_def
.
name
;
std
::
string
method_signature
=
" public static "
+
struct_def
.
name
+
" "
+
method_name
;
// create convenience method that doesn't require an existing object
code
+=
method_signature
+
"(ByteBuffer _bb) "
;
code
+=
"{ return "
+
method_name
+
"(_bb, new "
+
struct_def
.
name
+
"()); }
\n
"
;
// create method that allows object reuse
code
+=
method_signature
+
"(ByteBuffer _bb, "
+
struct_def
.
name
+
" obj) { "
;
code
+=
lang
.
set_bb_byteorder
;
...
...
tests/FlatBuffers.Test/Assert.cs
View file @
432f3f26
using
System
;
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
...
...
tests/FlatBuffers.Test/Program.cs
View file @
432f3f26
using
System
;
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using
System
;
using
System.Linq
;
using
System.Reflection
;
...
...
tests/FlatBuffers.Test/Properties/AssemblyInfo.cs
View file @
432f3f26
using
System.Reflection
;
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FlatBuffers.Test")]
...
...
@@ -14,8 +30,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
...
...
@@ -25,11 +41,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
...
...
tests/JavaTest.sh
View file @
432f3f26
#!/bin/sh
# Copyright 2014 Google Inc. All rights reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
...
tests/go_test.go
View file @
432f3f26
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
main
import
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment