Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Request #19: Rework WireFormat to support serialization.
Browse files Browse the repository at this point in the history
- Rewrite wire-format encoding and decoding to use zero-copy buffer
(based on ArraySegment) to minimize memory copies and limit object allocations.
- Add full WireFormat unit test suite.
- Rename Froto.Core.IO to Froto.Core.WireFormat.
  • Loading branch information
jhugard committed Feb 18, 2016
1 parent 0906996 commit fb78a0a
Show file tree
Hide file tree
Showing 14 changed files with 883 additions and 305 deletions.
7 changes: 7 additions & 0 deletions Core/Exceptions.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Froto.Core

/// Exception encoding or decoding a Protobuf wireformat
type ProtobufWireFormatException (message:string, ?innerException:exn) =
inherit System.ApplicationException( message, defaultArg innerException null )

6 changes: 4 additions & 2 deletions Core/Froto.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="IO.fs" />
<Compile Include="Exceptions.fs" />
<Compile Include="ZeroCopyBuffer.fs" />
<Compile Include="WireFormat.fs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets" />
</Project>
</Project>
302 changes: 0 additions & 302 deletions Core/IO.fs

This file was deleted.

Loading

0 comments on commit fb78a0a

Please sign in to comment.