Skip to content

Commit 6394146

Browse files
committed
release v1.5.0
1 parent 7e22c2f commit 6394146

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,32 @@
99
[![Forks](https://img.shields.io/github/forks/tabrath/BinaryEncoding.svg?longCache=true&style=flat-square&label=Forks&logo=github)](https://github.com/tabrath/BinaryEncoding/fork)
1010
[![Stars](https://img.shields.io/github/stars/tabrath/BinaryEncoding.svg?longCache=true&style=flat-square&label=Stars&logo=github)](https://github.com/tabrath/BinaryEncoding/star)
1111
[![License](https://img.shields.io/github/license/tabrath/BinaryEncoding.svg?longCache=true&style=flat-square&label=License)](https://github.com/tabrath/BinaryEncoding/blob/master/LICENSE)
12-
![Frameworks](https://img.shields.io/badge/Frameworks-netstandard1.1%20|%20net%20v4.5.2-green.svg?longCache=true&style=flat-square)
12+
![Frameworks](https://img.shields.io/badge/Frameworks-netstandard1.1%20|%20netstandard2.0%20|%20net%20v4.5.2-green.svg?longCache=true&style=flat-square)
1313
![Platforms](https://img.shields.io/badge/Platforms-win%20|%20linux%20|%20osx-green.svg?longCache=true&style=flat-square)
1414

1515
BinaryEncoding simplifies the encoding of numbers to BigEndian, LittleEndian and Varint to byte arrays.
1616

1717
## API
1818

1919
To set values to an array of bytes:
20-
``` cs
20+
21+
```cs
2122
Binary.BigEndian.Set(bytes, offset, value);
2223
Binary.LittleEndian.Set(bytes, offset, value);
2324
Binary.Varint.Write(bytes, offset, value);
2425
```
2526

2627
Extension methods are provided for retrieving the bytes:
27-
``` cs
28+
29+
```cs
2830
Binary.BigEndian.GetBytes(value);
2931
Binary.LittleEndian.GetBytes(value);
3032
Binary.Varint.GetBytes(value);
3133
```
3234

3335
Also, for converting bytes to numbers:
34-
``` cs
36+
37+
```cs
3538
Binary.BigEndian.GetInt16(bytes, offset);
3639
Binary.BigEndian.GetInt32(bytes, offset);
3740
Binary.BigEndian.GetInt64(bytes, offset);

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environment:
2-
PKG_VERSION: 1.4.0
2+
PKG_VERSION: 1.5.0
33
VERSION_SUFFIX: ""
44
version: ${PKG_VERSION}-{build}
55
configuration: Release

src/BinaryEncoding/BinaryEncoding.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<RepositoryUrl>https://github.com/tabrath/BinaryEncoding</RepositoryUrl>
1111
<description>Easily encode numbers to and from binary format</description>
1212
<releaseNotes></releaseNotes>
13-
<copyright>Copyright 2018</copyright>
13+
<copyright>Copyright 2019</copyright>
1414
<PackageTags>Binary Encoding BigEndian LittleEndian Varint</PackageTags>
15-
<VersionPrefix>1.4.0</VersionPrefix>
15+
<VersionPrefix>1.5.0</VersionPrefix>
1616
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
1717
<PlatformTarget>AnyCPU</PlatformTarget>
1818
<OutputType>Library</OutputType>

0 commit comments

Comments
 (0)