From 754cbb4066c2682c8dec120f3d0550f84e326d3a Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 6 Feb 2012 18:30:17 +0000 Subject: [Author: thomasvl] Document that for 64bit, >32bit length is not supported. Remove TODOs as they don't make sense to do. R=dmaclach DELTA=16 (6 added, 0 deleted, 10 changed) --- Foundation/GTMNSData+zlib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Foundation/GTMNSData+zlib.h') diff --git a/Foundation/GTMNSData+zlib.h b/Foundation/GTMNSData+zlib.h index df31d24..3ea7db8 100644 --- a/Foundation/GTMNSData+zlib.h +++ b/Foundation/GTMNSData+zlib.h @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -22,6 +22,10 @@ /// Helpers for dealing w/ zlib inflate/deflate calls. @interface NSData (GTMZLibAdditions) +// NOTE: For 64bit, none of these apis handle input sizes >32bits, they will +// return nil when given such data. To handle data of that size you really +// should be streaming it rather then doing it all in memory. + /// Return an autoreleased NSData w/ the result of gzipping the bytes. // // Uses the default compression level. -- cgit v1.2.3