Class NSMutableData

    • Constructor Detail

      • NSMutableData

        protected NSMutableData​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSMutableData 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()
      • dataWithBytesLength

        public static NSMutableData dataWithBytesLength​(@Nullable
                                                        @Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes,
                                                        long length)
      • dataWithBytesNoCopyLength

        public static NSMutableData dataWithBytesNoCopyLength​(@NotNull
                                                              @NotNull org.moe.natj.general.ptr.VoidPtr bytes,
                                                              long length)
      • dataWithBytesNoCopyLengthFreeWhenDone

        public static NSMutableData dataWithBytesNoCopyLengthFreeWhenDone​(@NotNull
                                                                          @NotNull org.moe.natj.general.ptr.VoidPtr bytes,
                                                                          long length,
                                                                          boolean b)
      • dataWithCapacity

        public static NSMutableData dataWithCapacity​(long aNumItems)
      • dataWithContentsOfFile

        public static NSMutableData dataWithContentsOfFile​(@NotNull
                                                           @NotNull java.lang.String path)
      • dataWithContentsOfFileOptionsError

        public static NSMutableData dataWithContentsOfFileOptionsError​(@NotNull
                                                                       @NotNull java.lang.String path,
                                                                       long readOptionsMask,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
      • dataWithContentsOfMappedFile

        @Deprecated
        public static NSMutableData dataWithContentsOfMappedFile​(@NotNull
                                                                 @NotNull java.lang.String path)
        Deprecated.
      • dataWithContentsOfURL

        public static NSMutableData dataWithContentsOfURL​(@NotNull
                                                          @NotNull NSURL url)
      • dataWithContentsOfURLOptionsError

        public static NSMutableData dataWithContentsOfURLOptionsError​(@NotNull
                                                                      @NotNull NSURL url,
                                                                      long readOptionsMask,
                                                                      @Nullable
                                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
      • dataWithLength

        public static NSMutableData dataWithLength​(long length)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • 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)
      • 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()
      • appendBytesLength

        public void appendBytesLength​(@NotNull
                                      @NotNull org.moe.natj.general.ptr.ConstVoidPtr bytes,
                                      long length)
      • appendData

        public void appendData​(@NotNull
                               @NotNull NSData other)
      • increaseLengthBy

        public void increaseLengthBy​(long extraLength)
      • initWithBase64EncodedDataOptions

        public NSMutableData initWithBase64EncodedDataOptions​(@NotNull
                                                              @NotNull NSData base64Data,
                                                              long options)
        Description copied from class: NSData
        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
        Overrides:
        initWithBase64EncodedDataOptions in class NSData
      • initWithBase64EncodedStringOptions

        public NSMutableData initWithBase64EncodedStringOptions​(@NotNull
                                                                @NotNull java.lang.String base64String,
                                                                long options)
        Description copied from class: NSData
        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
        Overrides:
        initWithBase64EncodedStringOptions in class NSData
      • initWithBase64Encoding

        @Deprecated
        public NSMutableData initWithBase64Encoding​(@NotNull
                                                    @NotNull java.lang.String base64String)
        Deprecated.
        Description copied from class: NSData
        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
        Overrides:
        initWithBase64Encoding in class NSData
      • initWithBytesLength

        public NSMutableData initWithBytesLength​(@Nullable
                                                 @Nullable org.moe.natj.general.ptr.ConstVoidPtr bytes,
                                                 long length)
        Overrides:
        initWithBytesLength in class NSData
      • initWithCapacity

        public NSMutableData initWithCapacity​(long capacity)
      • initWithContentsOfMappedFile

        @Deprecated
        public NSMutableData initWithContentsOfMappedFile​(@NotNull
                                                          @NotNull java.lang.String path)
        Deprecated.
        Description copied from class: NSData
        API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.
        Overrides:
        initWithContentsOfMappedFile in class NSData
      • initWithLength

        public NSMutableData initWithLength​(long length)
      • length

        public long length()
        Overrides:
        length in class NSData
      • mutableBytes

        @NotNull
        public @NotNull org.moe.natj.general.ptr.VoidPtr mutableBytes()
      • replaceBytesInRangeWithBytes

        public void replaceBytesInRangeWithBytes​(NSRange range,
                                                 @NotNull
                                                 @NotNull org.moe.natj.general.ptr.ConstVoidPtr bytes)
      • replaceBytesInRangeWithBytesLength

        public void replaceBytesInRangeWithBytesLength​(NSRange range,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.ConstVoidPtr replacementBytes,
                                                       long replacementLength)
      • resetBytesInRange

        public void resetBytesInRange​(NSRange range)
      • setData

        public void setData​(@NotNull
                            @NotNull NSData data)
      • setLength

        public void setLength​(long value)
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This 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:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class NSData
      • compressUsingAlgorithmError

        public boolean compressUsingAlgorithmError​(long algorithm,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • decompressUsingAlgorithmError

        public boolean decompressUsingAlgorithmError​(long algorithm,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        These methods compress or decompress the receiver's contents in-place using the specified algorithm. If the operation is not successful, these methods leave the receiver unchanged.. API-Since: 13.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.