Skip to content

Commit

Permalink
Set public access in ByteBuffer Impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tylerian committed Aug 16, 2018
1 parent 9e0faea commit b3372e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Swift/Sources/Buffers/ByteBuffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public protocol ByteBufferWritable {
mutating func write(bytes value: ByteBuffer) -> Self
}

internal final class UnsafeByteBuffer: ByteBuffer {
public final class UnsafeByteBuffer: ByteBuffer {
private var handle: fs_byte_buffer_t

public var capacity: Int {
Expand All @@ -76,7 +76,7 @@ internal final class UnsafeByteBuffer: ByteBuffer {
}
}

internal var unsafe: UnsafeMutablePointer<UInt8> {
public var unsafe: UnsafeMutablePointer<UInt8> {
return self.handle.heap
}

Expand Down Expand Up @@ -167,7 +167,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func getInt16(at offset: Int, endianness: Endianness = .bigEndian) -> Int16 {
public func getInt16(at offset: Int, endianness: Endianness) -> Int16 {
var value = Int16()
let result: Int32

Expand All @@ -185,7 +185,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func getInt32(at offset: Int, endianness: Endianness = .bigEndian) -> Int32 {
public func getInt32(at offset: Int, endianness: Endianness) -> Int32 {
var value = Int32()
let result: Int32

Expand All @@ -203,7 +203,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func getInt64(at offset: Int, endianness: Endianness = .bigEndian) -> Int64 {
public func getInt64(at offset: Int, endianness: Endianness) -> Int64 {
var value = Int64()
let result: Int32

Expand Down Expand Up @@ -245,7 +245,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func readInt16(endianness: Endianness = .bigEndian) -> Int16 {
public func readInt16(endianness: Endianness) -> Int16 {
var value = Int16()
let result: Int32

Expand All @@ -263,7 +263,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func readInt32(endianness: Endianness = .bigEndian) -> Int32 {
public func readInt32(endianness: Endianness) -> Int32 {
var value = Int32()
let result: Int32

Expand All @@ -281,7 +281,7 @@ extension UnsafeByteBuffer: ByteBufferReadable {
return value
}

public func readInt64(endianness: Endianness = .bigEndian) -> Int64 {
public func readInt64(endianness: Endianness) -> Int64 {
var value = Int64()
let result: Int32

Expand Down

0 comments on commit b3372e4

Please sign in to comment.