Package apple.foundation
Class NSData
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSData
-
- All Implemented Interfaces:
CKRecordValue,NSCoding,NSCopying,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableData
public class NSData extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, CKRecordValue
Immutable Data ***************
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSData.Block_enumerateByteRangesUsingBlockstatic interfaceNSData.Block_initWithBytesNoCopyLengthDeallocator-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSData(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static NSDataalloc()static NSDataallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@NotNull NSDatabase64EncodedDataWithOptions(long options)Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options.@NotNull java.lang.Stringbase64EncodedStringWithOptions(long options)Create a Base-64 encoded NSString from the receiver's contents using the given options.@NotNull java.lang.Stringbase64Encoding()Deprecated.@NotNull org.moe.natj.general.ptr.ConstVoidPtrbytes()The -bytes method returns a pointer to a contiguous region of memory managed by the receiver.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable NSDatacompressedDataUsingAlgorithmError(long algorithm, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)API-Since: 13.0@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static NSDatadata()static NSDatadataWithBytesLength(@Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)static NSDatadataWithBytesNoCopyLength(@NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length)static NSDatadataWithBytesNoCopyLengthFreeWhenDone(@NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)static NSDatadataWithContentsOfFile(@NotNull java.lang.String path)static NSDatadataWithContentsOfFileOptionsError(@NotNull java.lang.String path, long readOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)static NSDatadataWithContentsOfMappedFile(@NotNull java.lang.String path)Deprecated.static NSDatadataWithContentsOfURL(@NotNull NSURL url)static NSDatadataWithContentsOfURLOptionsError(@NotNull NSURL url, long readOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)static NSDatadataWithData(@NotNull NSData data)static java.lang.StringdebugDescription_static()@Nullable NSDatadecompressedDataUsingAlgorithmError(long algorithm, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)These methods return a compressed or decompressed version of the receiver using the specified algorithm.@NotNull java.lang.Stringdescription()voidencodeWithCoder(@NotNull NSCoder coder)voidenumerateByteRangesUsingBlock(@NotNull NSData.Block_enumerateByteRangesUsingBlock block)'block' is called once for each contiguous region of memory in the receiver (once total for contiguous NSDatas), until either all bytes have been enumerated, or the 'stop' parameter is set to YES.voidgetBytes(@NotNull org.moe.natj.general.ptr.VoidPtr buffer)Deprecated.voidgetBytesLength(@NotNull org.moe.natj.general.ptr.VoidPtr buffer, long length)voidgetBytesRange(@NotNull org.moe.natj.general.ptr.VoidPtr buffer, NSRange range)static longhash_static()NSDatainit()NSDatainitWithBase64EncodedDataOptions(@NotNull NSData base64Data, long options)Create an NSData from a Base-64, UTF-8 encoded NSData.NSDatainitWithBase64EncodedStringOptions(@NotNull java.lang.String base64String, long options)Create an NSData from a Base-64 encoded NSString using the given options.NSDatainitWithBase64Encoding(@NotNull java.lang.String base64String)Deprecated.NSDatainitWithBytesLength(@Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)NSDatainitWithBytesNoCopyLength(@NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length)NSDatainitWithBytesNoCopyLengthDeallocator(@NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, @Nullable NSData.Block_initWithBytesNoCopyLengthDeallocator deallocator)API-Since: 7.0NSDatainitWithBytesNoCopyLengthFreeWhenDone(@NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)NSDatainitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERNSDatainitWithContentsOfFile(@NotNull java.lang.String path)NSDatainitWithContentsOfFileOptionsError(@NotNull java.lang.String path, long readOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)NSDatainitWithContentsOfMappedFile(@NotNull java.lang.String path)Deprecated.NSDatainitWithContentsOfURL(@NotNull NSURL url)NSDatainitWithContentsOfURLOptionsError(@NotNull NSURL url, long readOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)NSDatainitWithData(@NotNull NSData data)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisEqualToData(@NotNull NSData other)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)longlength()@NotNull java.lang.ObjectmutableCopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static NSDatanew_objc()NSRangerangeOfDataOptionsRange(@NotNull NSData dataToFind, long mask, NSRange searchRange)API-Since: 4.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)@NotNull NSDatasubdataWithRange(NSRange range)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static booleanuseStoredAccessor()Deprecated.static longversion_static()booleanwriteToFileAtomically(@NotNull java.lang.String path, boolean useAuxiliaryFile)booleanwriteToFileOptionsError(@NotNull java.lang.String path, long writeOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)booleanwriteToURLAtomically(@NotNull NSURL url, boolean atomically)the atomically flag is ignored if the url is not of a type the supports atomic writesbooleanwriteToURLOptionsError(@NotNull NSURL url, long writeOptionsMask, @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description_static, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSData alloc()
-
allocWithZone
public static NSData allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
data
public static NSData data()
-
dataWithBytesLength
public static NSData dataWithBytesLength(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)
-
dataWithBytesNoCopyLength
public static NSData dataWithBytesNoCopyLength(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length)
-
dataWithBytesNoCopyLengthFreeWhenDone
public static NSData dataWithBytesNoCopyLengthFreeWhenDone(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)
-
dataWithContentsOfFile
public static NSData dataWithContentsOfFile(@NotNull @NotNull java.lang.String path)
-
dataWithContentsOfFileOptionsError
public static NSData dataWithContentsOfFileOptionsError(@NotNull @NotNull java.lang.String path, long readOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
dataWithContentsOfMappedFile
@Deprecated public static NSData dataWithContentsOfMappedFile(@NotNull @NotNull java.lang.String path)
Deprecated.API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.
-
dataWithContentsOfURLOptionsError
public static NSData dataWithContentsOfURLOptionsError(@NotNull @NotNull NSURL url, long readOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static NSData new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
base64EncodedDataWithOptions
@NotNull public @NotNull NSData base64EncodedDataWithOptions(long options)
Create a Base-64, UTF-8 encoded NSData from the receiver's contents using the given options. API-Since: 7.0
-
base64EncodedStringWithOptions
@NotNull public @NotNull java.lang.String base64EncodedStringWithOptions(long options)
Create a Base-64 encoded NSString from the receiver's contents using the given options. API-Since: 7.0
-
base64Encoding
@NotNull @Deprecated public @NotNull java.lang.String base64Encoding()
Deprecated.API-Since: 4.0 Deprecated-Since: 7.0 Deprecated-Message: Use base64EncodedStringWithOptions: instead
-
bytes
@NotNull public @NotNull org.moe.natj.general.ptr.ConstVoidPtr bytes()
The -bytes method returns a pointer to a contiguous region of memory managed by the receiver. If the regions of memory represented by the receiver are already contiguous, it does so in O(1) time, otherwise it may take longer Using -enumerateByteRangesUsingBlock: will be efficient for both contiguous and discontiguous data.
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
description
@NotNull public @NotNull java.lang.String description()
- Specified by:
descriptionin interfaceNSObject- Overrides:
descriptionin classNSObject
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateByteRangesUsingBlock
public void enumerateByteRangesUsingBlock(@NotNull @NotNull NSData.Block_enumerateByteRangesUsingBlock block)'block' is called once for each contiguous region of memory in the receiver (once total for contiguous NSDatas), until either all bytes have been enumerated, or the 'stop' parameter is set to YES. API-Since: 7.0
-
getBytes
@Deprecated public void getBytes(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr buffer)Deprecated.API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.
-
getBytesLength
public void getBytesLength(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr buffer, long length)
-
getBytesRange
public void getBytesRange(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr buffer, NSRange range)
-
initWithBase64EncodedDataOptions
public NSData initWithBase64EncodedDataOptions(@NotNull @NotNull NSData base64Data, long options)
Create an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64. API-Since: 7.0
-
initWithBase64EncodedStringOptions
public NSData initWithBase64EncodedStringOptions(@NotNull @NotNull java.lang.String base64String, long options)
Create an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64. API-Since: 7.0
-
initWithBase64Encoding
@Deprecated public NSData initWithBase64Encoding(@NotNull @NotNull java.lang.String base64String)
Deprecated.These methods first appeared in NSData.h on OS X 10.9 and iOS 7.0. They are deprecated in the same releases in favor of the methods in the NSDataBase64Encoding category. However, these methods have existed for several releases, so they may be used for applications targeting releases prior to OS X 10.9 and iOS 7.0. API-Since: 4.0 Deprecated-Since: 7.0 Deprecated-Message: Use initWithBase64EncodedString:options: instead
-
initWithBytesLength
public NSData initWithBytesLength(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)
-
initWithBytesNoCopyLength
public NSData initWithBytesNoCopyLength(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length)
-
initWithBytesNoCopyLengthDeallocator
public NSData initWithBytesNoCopyLengthDeallocator(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, @Nullable @Nullable NSData.Block_initWithBytesNoCopyLengthDeallocator deallocator)
API-Since: 7.0
-
initWithBytesNoCopyLengthFreeWhenDone
public NSData initWithBytesNoCopyLengthFreeWhenDone(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)
-
initWithCoder
public NSData initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithContentsOfFile
public NSData initWithContentsOfFile(@NotNull @NotNull java.lang.String path)
-
initWithContentsOfFileOptionsError
public NSData initWithContentsOfFileOptionsError(@NotNull @NotNull java.lang.String path, long readOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
initWithContentsOfMappedFile
@Deprecated public NSData initWithContentsOfMappedFile(@NotNull @NotNull java.lang.String path)
Deprecated.API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.
-
initWithContentsOfURLOptionsError
public NSData initWithContentsOfURLOptionsError(@NotNull @NotNull NSURL url, long readOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
isEqualToData
public boolean isEqualToData(@NotNull @NotNull NSData other)
-
length
public long length()
-
mutableCopyWithZone
@NotNull public @NotNull java.lang.Object mutableCopyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
rangeOfDataOptionsRange
public NSRange rangeOfDataOptionsRange(@NotNull @NotNull NSData dataToFind, long mask, NSRange searchRange)
API-Since: 4.0
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
writeToFileAtomically
public boolean writeToFileAtomically(@NotNull @NotNull java.lang.String path, boolean useAuxiliaryFile)
-
writeToFileOptionsError
public boolean writeToFileOptionsError(@NotNull @NotNull java.lang.String path, long writeOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
writeToURLAtomically
public boolean writeToURLAtomically(@NotNull @NotNull NSURL url, boolean atomically)the atomically flag is ignored if the url is not of a type the supports atomic writes
-
writeToURLOptionsError
public boolean writeToURLOptionsError(@NotNull @NotNull NSURL url, long writeOptionsMask, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
compressedDataUsingAlgorithmError
@Nullable public @Nullable NSData compressedDataUsingAlgorithmError(long algorithm, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
API-Since: 13.0
-
decompressedDataUsingAlgorithmError
@Nullable public @Nullable NSData decompressedDataUsingAlgorithmError(long algorithm, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
These methods return a compressed or decompressed version of the receiver using the specified algorithm. API-Since: 13.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-