mirror of
https://github.com/Cocoanetics/SwiftMail.git
synced 2026-03-17 20:02:25 +00:00
12 lines
302 B
Swift
12 lines
302 B
Swift
// ByteBuffer+StringValue.swift
|
|
// Extension to provide string representation of ByteBuffer
|
|
|
|
import Foundation
|
|
import NIO
|
|
|
|
extension ByteBuffer {
|
|
/// Get a String representation of the ByteBuffer
|
|
var stringValue: String {
|
|
getString(at: readerIndex, length: readableBytes) ?? ""
|
|
}
|
|
} |