This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let x = 5; | |
let y = 10; | |
fn test() -> i32 { | |
5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
*.swp | |
Builds | |
JuceLibraryCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecureData: NSMutableData { | |
public class func secureDataWithLength(length: Int) -> SecureData? { | |
if let data = CFDataCreateMutable(SecureMemoryAllocator.allocator, length) as? SecureData { | |
data.length = length | |
return data | |
} | |
return nil | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecureData: NSMutableData { | |
public init(length: Int) { | |
precondition(length > 0) | |
self = CFDataCreateMutable(SecureMemoryAllocator.allocator, length) | |
self.length = length | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum PeerConnectionMessage { | |
case AddressMessage(BitcoinSwift.AddressMessage) | |
case InventoryMessage(BitcoinSwift.InventoryMessage) | |
case GetDataMessage(BitcoinSwift.GetDataMessage) | |
case NotFoundMessage(BitcoinSwift.NotFoundMessage) | |
case GetBlocksMessage(BitcoinSwift.GetBlocksMessage) | |
case GetHeadersMessage(BitcoinSwift.GetHeadersMessage) | |
case Transaction(BitcoinSwift.Transaction) | |
case Block(BitcoinSwift.Block) | |
case HeadersMessage(BitcoinSwift.HeadersMessage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension PeerConnection { | |
public enum Message { | |
case AddressMessage(AddressMessage) | |
case InventoryMessage(InventoryMessage) | |
case GetDataMessage(GetDataMessage) | |
case NotFoundMessage(NotFoundMessage) | |
case GetBlocksMessage(GetBlocksMessage) | |
case GetHeadersMessage(GetHeadersMessage) | |
case Transaction(Transaction) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TransactionLockTime.swift | |
// BitcoinSwift | |
// | |
// Created by Kevin Greene on 9/27/14. | |
// Copyright (c) 2014 DoubleSha. All rights reserved. | |
// | |
import Foundation |