File tree 4 files changed +29
-6
lines changed
4 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ let package = Package(
32
32
dependencies: [
33
33
. byName( name: " AWSLambdaRuntimeCore " ) ,
34
34
. product( name: " NIOCore " , package : " swift-nio " ) ,
35
- ] ,
35
+ ]
36
36
) ,
37
37
. target(
38
38
name: " AWSLambdaRuntimeCore " ,
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ public struct LambdaJSONEventDecoder: LambdaEventDecoder {
32
32
}
33
33
34
34
@inlinable
35
- public func decode< Event> ( _ type: Event . Type , from buffer: NIOCore . ByteBuffer ) throws -> Event where Event : Decodable {
35
+ public func decode< Event> ( _ type: Event . Type , from buffer: NIOCore . ByteBuffer ) throws -> Event
36
+ where Event: Decodable {
36
37
try buffer. getJSONDecodable (
37
38
Event . self,
38
39
decoder: self . jsonDecoder,
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the SwiftAWSLambdaRuntime open source project
4
+ //
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
//===----------------------------------------------------------------------===//
2
16
//
3
17
// This source file is part of the SwiftNIO open source project
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the SwiftAWSLambdaRuntime open source project
1
4
//
2
- // JSON+ByteBuffer.swift
3
- // swift-aws-lambda-runtime
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
4
10
//
5
- // Created by Fabian Fett on 06.09.24.
11
+ // SPDX-License-Identifier: Apache-2.0
6
12
//
13
+ //===----------------------------------------------------------------------===//
7
14
8
15
//===----------------------------------------------------------------------===//
9
16
//
19
26
//
20
27
//===----------------------------------------------------------------------===//
21
28
29
+ import NIOCore
30
+
22
31
#if canImport(FoundationEssentials)
23
32
import FoundationEssentials
24
33
#else
25
34
import Foundation
26
35
#endif
27
- import NIOCore
28
36
29
37
extension ByteBuffer {
30
38
/// Attempts to decode the `length` bytes from `index` using the `JSONDecoder` `decoder` as `T`.
You can’t perform that action at this time.
0 commit comments