11/*
2- * Copyright 2017 47 Degrees, LLC. <http://www.47deg.com>
2+ * Copyright 2017-2018 47 Degrees, LLC. <http://www.47deg.com>
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -71,22 +71,26 @@ package object codecs {
7171
7272 implicit val booleanCodec : ByteBufferCodec [Boolean ] =
7373 PrimitiveByteBufferCodec [Boolean ](DataType .smallint(), byteSize = 1 , defaultValue = false ) {
74- byteBuffer => byteBuffer.get(byteBuffer.position()) == 1
74+ byteBuffer =>
75+ byteBuffer.get(byteBuffer.position()) == 1
7576 }
7677
7778 implicit val byteCodec : ByteBufferCodec [Byte ] =
7879 PrimitiveByteBufferCodec [Byte ](DataType .smallint(), byteSize = 1 , defaultValue = 0 ) {
79- byteBuffer => byteBuffer.get(byteBuffer.position())
80+ byteBuffer =>
81+ byteBuffer.get(byteBuffer.position())
8082 }
8183
8284 implicit val doubleCodec : ByteBufferCodec [Double ] =
8385 PrimitiveByteBufferCodec [Double ](DataType .cdouble(), byteSize = 8 , defaultValue = 0 ) {
84- byteBuffer => byteBuffer.getDouble(byteBuffer.position())
86+ byteBuffer =>
87+ byteBuffer.getDouble(byteBuffer.position())
8588 }
8689
8790 implicit val floatCodec : ByteBufferCodec [Float ] =
8891 PrimitiveByteBufferCodec [Float ](DataType .cfloat(), byteSize = 4 , defaultValue = 0 ) {
89- byteBuffer => byteBuffer.getFloat(byteBuffer.position())
92+ byteBuffer =>
93+ byteBuffer.getFloat(byteBuffer.position())
9094 }
9195
9296 implicit val intCodec : ByteBufferCodec [Int ] =
@@ -96,12 +100,14 @@ package object codecs {
96100
97101 implicit val longCodec : ByteBufferCodec [Long ] =
98102 PrimitiveByteBufferCodec [Long ](DataType .bigint(), byteSize = 8 , defaultValue = 0 ) {
99- byteBuffer => byteBuffer.getLong(byteBuffer.position())
103+ byteBuffer =>
104+ byteBuffer.getLong(byteBuffer.position())
100105 }
101106
102107 implicit val shortCodec : ByteBufferCodec [Short ] =
103108 PrimitiveByteBufferCodec [Short ](DataType .smallint(), byteSize = 2 , defaultValue = 0 ) {
104- byteBuffer => byteBuffer.getShort(byteBuffer.position())
109+ byteBuffer =>
110+ byteBuffer.getShort(byteBuffer.position())
105111 }
106112
107113 implicit def byteBufferCodec [T ](
0 commit comments