From 02dfa64a89f46588c6de34e59a310fab98e73f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Fern=C3=A1ndez?= Date: Fri, 9 Sep 2016 15:25:09 +0200 Subject: Allow access to underlying ByteBuffer --- net/FlatBuffers/IFlatbufferObject .cs | 26 -------------------------- net/FlatBuffers/IFlatbufferObject.cs | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 26 deletions(-) delete mode 100644 net/FlatBuffers/IFlatbufferObject .cs create mode 100644 net/FlatBuffers/IFlatbufferObject.cs (limited to 'net') diff --git a/net/FlatBuffers/IFlatbufferObject .cs b/net/FlatBuffers/IFlatbufferObject .cs deleted file mode 100644 index fb6dc5b2..00000000 --- a/net/FlatBuffers/IFlatbufferObject .cs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ - -namespace FlatBuffers -{ - /// - /// This is the base for both structs and tables. - /// - public interface IFlatbufferObject - { - void __init(int _i, ByteBuffer _bb); - } -} diff --git a/net/FlatBuffers/IFlatbufferObject.cs b/net/FlatBuffers/IFlatbufferObject.cs new file mode 100644 index 00000000..6a15aba6 --- /dev/null +++ b/net/FlatBuffers/IFlatbufferObject.cs @@ -0,0 +1,28 @@ +/* + * 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. + */ + +namespace FlatBuffers +{ + /// + /// This is the base for both structs and tables. + /// + public interface IFlatbufferObject + { + void __init(int _i, ByteBuffer _bb); + + ByteBuffer ByteBuffer { get; } + } +} -- cgit v1.2.3