File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
core/shared/src/main/scala-0.22/scodec/bits Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ private[bits] trait ByteVectorPlatform { self: ByteVector.type =>
10
10
11
11
private [bits] object ByteVectorFromDigits {
12
12
13
- private def digitsToByteVector (digits : String , radix : Int ): ByteVector =
14
- if (radix == 16 ) ByteVector .fromValidHex(digits.tail)
15
- else throw FromDigits .MalformedNumber (s " unsupported radix $radix" )
16
-
17
- private [bits] class Base extends FromDigits .WithRadix [ByteVector ] {
13
+ class Base extends FromDigits .WithRadix [ByteVector ] {
18
14
def fromDigits (digits : String , radix : Int ): ByteVector =
19
15
digitsToByteVector(digits, radix)
20
16
}
21
17
22
- private [bits] object Instance extends Base {
18
+ private def digitsToByteVector (digits : String , radix : Int ): ByteVector =
19
+ if (radix == 16 ) ByteVector .fromValidHex(digits.tail)
20
+ else throw FromDigits .MalformedNumber (s " unsupported radix $radix" )
21
+
22
+ object Instance extends Base {
23
23
override inline def fromDigits (digits : String ): ByteVector =
24
24
$ {digitsToByteVectorMacro(' digits , Expr (10 ))}
25
25
override inline def fromDigits (digits : String , radix : Int ): ByteVector =
You can’t perform that action at this time.
0 commit comments