Files
SwiftMail/Sources/SwiftIMAP/Extensions/ByteBuffer+StringValue.swift
2025-02-26 11:26:18 +01:00

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) ?? ""
}
}